PHP Classes
elePHPant
Icontem

PHP CLI Commands: Process CLI arguments with external classes

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-11-16 (11 months ago) RSS 2.0 feedNot enough user ratingsTotal: 222 All time: 7,649 This week: 938Up
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: 8 packages by
Country: Serbia Serbia
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Files folder imagecommands (1 file)
Accessible without login Plain text file cli.php Example Command runner
Plain text file Command.php Class Command class

  Files folder image Files  /  commands  
File Role Description
  Plain text file ExampleCmd.php Class Example command

 Version Control Unique User Downloads Download Rankings  
 0%
Total:222
This week:0
All time:7,649
This week:938Up