PHP Classes

CLI Parser extended: Get values from command line arguments

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 354 All time: 6,967 This week: 71Up
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
Age: 37
All time rank: 368620 in Belgium Belgium
Week rank: 197 Up2 in Belgium Belgium Up

  Files folder image Files (11)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:354
This week:0
All time:6,967
This week:71Up