CLI Console for Cherry-project.
Install from composercomposer require cherry-project/console
Next you must create executable PHP script (Ex.: console).
Note Add this line at top of your console for executing
it in PHP interpreter: #!/usr/bin/env php
Include Autoloader in console
require_once__DIR__ . '/vendor/autoload.php';Import classes
useCherry\Console\Console;
useCherry\Kernel;Create new Kernel and Console instance
$app = newKernel(__DIR__);
$console = newConsole();Now you can get console help message:
php console --help
or
./console --help
2019 © Cherry-project