<?php /** * @package Akaunting * @copyright 2017-2019 Akaunting. All rights reserved. * @license GNU GPL version 3; see LICENSE.txt * @link https://akaunting.com */ // Define minimum supported PHP version define('AKAUNTING_PHP', '7.2.0'); // Check PHP version if (version_compare(PHP_VERSION, AKAUNTING_PHP, '<')) { die('Your host needs to use PHP ' . AKAUNTING_PHP . ' or higher to run Akaunting'); } // 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);