Cli Tools for PHP
Using the Parser can be done like this:
use PhpCli\Parser;
$parser = new PhpCli\Parser($argv, $argc);
print_r($parser->getArgs());
From the command line, arguments can be passed in like this:
php script.php --arg=value arg2=value2
Using the output class can be done like this;
use PhpCli\Output;
$output = new PhpCli\Output;
$output->write("hello world", array(
'color' => 'red',
));