Login   Register  
PHP Classes

CLI Parser extended: Get values from command line arguments

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 328 All time: 6,442 This week: 1,309Up
Version License PHP version Categories  
cliparser-extended 0.2GNU General Public Lice...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
Name: Olivier Bourdoux <contact>
Classes: 1 package by
Country: Belgium Belgium
Age: 27
All time rank: 335619 in Belgium Belgium
Week rank: 1754 Up12 in Belgium Belgium Up

  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:328All time:6,442
 This week:0This week:1,309Up