1
0
mirror of https://github.com/flextype/flextype.git synced 2025-01-17 12:48:31 +01:00
php-flextype/index.php

24 lines
748 B
PHP
Raw Normal View History

2018-03-09 13:11:52 +03:00
<?php
/**
* This file is part of the Rawilum.
*
* (c) Romanenko Sergey / Awilum <awilum@msn.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Rawilum;
2018-03-09 19:49:27 +03:00
// Check PHP Version
version_compare($ver = PHP_VERSION, $req = '7.1.3', '<') and exit(sprintf('You are running PHP %s, but Rawilum needs at least <strong>PHP %s</strong> to run.', $ver, $req));
2018-03-09 13:11:52 +03:00
2018-03-09 19:49:27 +03:00
// Ensure vendor libraries exist and Register The Auto Loader
!is_file($autoload = __DIR__ . '/vendor/autoload.php') and exit("Please run: <i>composer install</i>");
2018-03-09 13:11:52 +03:00
// Register the auto-loader.
$loader = require_once $autoload;
// Run Rawilum Application
2018-03-09 19:49:27 +03:00
$rawilum = Rawilum::instance()->run();