heropoo / console
A cli component
v0.1.2
2020-04-23 10:47 UTC
This package is auto-updated.
Last update: 2024-11-23 20:53:42 UTC
README
console
install
via composer
composer require heropoo/console
usage
$console = new \Moon\Console\Console(); $console->add('hello', function (){ return 'Hello world!'; }); $console->add('ping', 'PingCommand::ping'); $app = new \Moon\Console\ConsoleApplication(); $status = $app->handleCommand($console); exit($status);