#!/usr/bin/env php <?php declare(strict_types=1); namespace App\Controller; if (php_sapi_name() !== 'cli') { echo 'This application must be run on the command line.' . PHP_EOL; exit; } // check php version (must be >= 8.1) /** @noinspection PhpArgumentWithoutNamedIdentifierInspection */ if (version_compare(PHP_VERSION, '8.1.0', '<')) { echo 'This application requires PHP 8.1 or newer. You are running ' . PHP_VERSION . PHP_EOL; echo 'If you are using KeyHelp, use keyhelp-php81 ' . $argv[0] . ' instead.' . PHP_EOL; exit; } /** @noinspection PhpArgumentWithoutNamedIdentifierInspection */ require dirname(__DIR__, 1) . '/src/Util/Console.php';