PHP Classes
elePHPant
Icontem

Read arguments: Read and validate shell command line arguments

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-09-30 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 296 All time: 7,025 This week: 1,081Up
Version License PHP version Categories
read-cli-arguments 1.0.0BSD License3.0Console, Validation
Description Author

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.

  Performance   Level  
Name: Manuel Lemos <contact>
Classes: 38 packages by
Country: Portugal Portugal
Age: 48
All time rank: 1
Week rank: 4 Down1 in Portugal Portugal Equal

Screenshots  
  • read-cli-arguments.png
  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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:296
This week:0
All time:7,025
This week:1,081Up
User Comments (1)
Its a very good class ! lool BUt a little confuse, you embed ...
6 years ago (Josť Filipe Lopes Santos)
80%StarStarStarStarStar