Blame view

index.php 795 Bytes
b7c7a5f6   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  <?php
  /**
   * @package     Akaunting
   * @copyright   2017-2018 Akaunting. All rights reserved.
   * @license     GNU GPL version 3; see LICENSE.txt
   * @link        https://akaunting.com
   */
  
  // Define minimum supported PHP version
  define('AKAUNTING_PHP', '5.6.4');
  
  // 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);