Login   Register  
PHP Classes

Read arguments: Read and validate shell command line arguments

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

  Author Author  
Picture of Manuel Lemos
Name: Manuel Lemos <contact>
Classes: 38 packages by
Country: Portugal Portugal
Age: 45
All time rank: 1
Week rank: 3 Down1 in Portugal Portugal Equal

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
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 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: 1.0.0
PHP version: 3.0
License: BSD License
All time users: 276 users
All time rank: 6687
Week users: 0 users
Week rank: 1735 Equal
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

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  
File Role Description
Accessible without login Image file read-cli-arguments.png Screen Output of the example script

  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.
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

Install with Composer Install with Composer - Download 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.