13 lines
369 B
PHP
Executable File
13 lines
369 B
PHP
Executable File
#!/usr/bin/env php
|
|
<?php
|
|
$phpRequired = "5.6.0";
|
|
|
|
try {
|
|
if( !version_compare( PHP_VERSION, "5.6.0", ">=") ):
|
|
throw new Exception(sprintf("\n\x1b[41;1m[error] : PHP Version \x1b[4m%s\x1b[0m\x1b[41;1m \x1b[37;1mor above is required, please update.\n\n", $phpRequired));
|
|
endif;
|
|
} catch (Exception $e) {
|
|
fwrite(STDERR, $e->getMessage()) . PHP_EOL;
|
|
exit(255);
|
|
}
|