Login   Register  
PHP Classes
elePHPant
Icontem

Read arguments

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

  Author  
Picture of Manuel Lemos
Name: Manuel Lemos <e-mail contact>
Packages: 32 Browse all classes by Manuel Lemos Browse all classes by
Country: Portugal Portugal - PHP jobs in Portugal
Age: 44
All time rank: 1
Week rank: 2 Down1 in Portugal Portugal Equal


  Detailed description   Download .zip .tar.gz  
This class can can be used to read and validate shell command line arguments.

It can parse the values of arguments passed to a PHP script started from a command line shell to validate them according to rules defined by the current script.

It supports mandatory arguments, optional arguments, switch arguments, multiple alternatives to an option switches, and a special argument that makes show a nicely formatted help usage message.

The class extract the argument values into an array if the argument rules are validated.

  Classes of Manuel Lemos  >  Read arguments  >  Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Read arguments
Base name: read-cli-arguments
Description: Read and validate shell command line arguments
Version: -
PHP version: 3.0
License: BSD License
All time users: 257 users
All time rank: 6341
Week users: 0 users
Week rank: 2076 Equal
 
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Console Command line and console utilities View top rated classes
Group folder image Validation Validation algorithms View top rated classes

  Files folder image Screenshots  
Output of the example script
File Role Description
Accessible without login Image file read-cli-arguments.png Screen Output of the example script


  User ratings  
There are not enough user ratings to display for this class.

  Applications that use this class  
No application links were specified for this class.
Add link image If you know an application of this package, send a message to the author to add a link here.
  Files folder image Files  
File Role Description
Plain text file read_arguments.php Class Read arguments class
Accessible without login HTML file read_arguments_class.html Doc. Class documentation
Accessible without login Plain text file test_read_arguments.php Example Example script

Download all files: read-cli-arguments.tar.gz read-cli-arguments.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.