PHP CLI Commands: Process CLI arguments with external classes

Recommend this page to a friend!
  Info   Example   View files (3)   Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 231 This week: 2All time: 7,979 This week: 114
Version License PHP version Categories
cli-commands 1.0GNU General Publi...5.4PHP 5, Console
Description Author

This class can process CLI arguments with external classes.

It can parse the command line arguments to extract the values of options.

The class loads external class from directory of commands to process the arguments and execute the actions of the requested command which is the of the first argument.

If it was requested a command that is not supported, the class will display the list of supported commands.

Picture of Aleksandar Zivanovic
  Performance   Level  
Name: Aleksandar Zivanovic <contact>
Classes: 15 packages by
Country: Serbia Serbia
Age: 26
All time rank: 17217 in Serbia Serbia
Week rank: 79 1 in Serbia Serbia
Innovation award
Innovation award
Nominee: 4x

  Files  
File Role Description
commands (1 file)
cli.php Example Command runner
Command.php Class Command class

  Files  /  commands  
File Role Description
   ExampleCmd.php Class Example command

 Version Control Unique User Downloads Download Rankings  
 0%
Total:231
This week:2
All time:7,979
This week:114

For more information send a message to info at phpclasses dot org.