cherry-project / console
CLI Console for Cherry-project
v1.7.1
2019-05-05 19:44 UTC
Requires
- php: >=5.6.0
- ext-json: *
- ext-readline: *
- cherry-project/core: 1.6.*
README
CLI Console for Cherry-project.
Including
Install from composer composer 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';
Usage
Import classes
use Cherry\Console\Console; use Cherry\Kernel;
Create new Kernel and Console instance
$app = new Kernel(__DIR__); $console = new Console();
Now you can get console help message:
php console --help
or
./console --help
2019 © Cherry-project