diff --git a/index.php b/index.php index b86f1d92..5a47a66f 100755 --- a/index.php +++ b/index.php @@ -10,8 +10,13 @@ namespace Rawilum; +/** + * Define the application's minimum supported PHP version. + */ +define('RAWILUM_MINIMUM_PHP', '7.1.3'); + // 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 PHP %s to run.', $ver, $req)); +version_compare($ver = PHP_VERSION, $req = RAWILUM_MINIMUM_PHP, '<') and exit(sprintf('You are running PHP %s, but Rawilum needs at least PHP %s to run.', $ver, $req)); // Ensure vendor libraries exist and Register The Auto Loader !is_file($autoload = __DIR__ . '/vendor/autoload.php') and exit("Please run: composer install");