akaunting/index.php

33 lines
795 B
PHP
Raw Normal View History

2017-09-14 22:21:00 +03:00
<?php
/**
* @package Akaunting
2019-11-16 10:21:14 +03:00
* @copyright 2017-2019 Akaunting. All rights reserved.
2017-09-14 22:21:00 +03:00
* @license GNU GPL version 3; see LICENSE.txt
* @link https://akaunting.com
*/
2017-11-25 23:14:57 +03:00
// Define minimum supported PHP version
2019-11-16 10:21:14 +03:00
define('AKAUNTING_PHP', '7.2.0');
2017-11-25 23:14:57 +03:00
// Check PHP version
if (version_compare(PHP_VERSION, AKAUNTING_PHP, '<')) {
die('Your host needs to use PHP ' . AKAUNTING_PHP . ' or higher to run Akaunting');
}
2017-09-14 22:21:00 +03:00
// Register the auto-loader
require(__DIR__.'/bootstrap/autoload.php');
// Load the app
$app = require_once(__DIR__.'/bootstrap/app.php');
// Run the app
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
$response = $kernel->handle(
$request = Illuminate\Http\Request::capture()
);
$response->send();
$kernel->terminate($request, $response);