Skip to content

corycollier/php-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-cli

Cli Tools for PHP

Build Status Coverage Status

Parser Usage

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

Output Usage

Using the output class can be done like this;

use PhpCli\Output;
$output = new PhpCli\Output;
$output->write("hello world", array(
  'color' => 'red',
));

About

Cli argument parser for php

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages