PHP Classes

PHP Command Line Interface Arguments Parser: Process command line arguments and display usage

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 53 All time: 10,187 This week: 252Up
Version License PHP version Categories
colin 1.0GNU Lesser Genera...5.6PHP 5, Console, Parsers
Description Author

This class can process command line arguments and display usage.

It can take the definition of options that the current PHP script should be accept when run from the command line shell and parses the current arguments to validate them and extract its values.

The class can also take the current command line options definition and output to the current terminal shell the usage that is allowed for the command.

Picture of Amica Noctis
Name: Amica Noctis <contact>
Classes: 1 package by
Country: Germany Germany
Age: ???
All time rank: 4412235 in Germany Germany
Week rank: 577 Up31 in Germany Germany Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file colin-example.php.txt Example Example script
Plain text file CommandLineInterface.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,187
This week:252Up
For more information send a message to info at phpclasses dot org.