PHP Classes
elePHPant
Icontem

CLI Parser extended: Get values from command line arguments

Recommend this page to a friend!
  Info   View files View files (11)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2011-10-20 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 346 All time: 6,644 This week: 961Up
Version License PHP version Categories
cliparser-extended 0.2GNU General Publi...5.0PHP 5, Text processing, Console, Parsers
Description Author

This class can get values from command line arguments.

It is an enhanced version of the CLI parser class originally written by Diego Feitosa.

This version can automatically load the argument type classes, the main class is no longer abstract and so can be used directly or be extended, it supports arguments that can be used without the switch, the type of the argument can show in the help message, invalid arguments can be associated to error messages.

Picture of Olivier Bourdoux
  Performance   Level  
Name: Olivier Bourdoux <contact>
Classes: 1 package by
Country: Belgium Belgium

  Files folder image Files  
File Role Description
Plain text file CliParser.inc Class Main class
Plain text file CliToken.inc Class Token Class
Plain text file CliTokenBoolean.inc Class Token Boolean Class
Plain text file CliTokenDirectory.inc Class Token Directory Class
Plain text file CliTokenEnum.inc Class Token Enum Class
Plain text file CliTokenFile.inc Class Token File Class
Plain text file CliTokenInteger.inc Class Token Integer Class
Plain text file CliTokenNumeric.inc Class Token Numeric Class
Plain text file CliTokenString.inc Class Token String Class
Plain text file CliTokenExample.inc Class Token Example Class
Accessible without login Plain text file example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:346
This week:0
All time:6,644
This week:961Up