Skip to content

heropoo/console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

console

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);