PHP Classes

Console App: Parse and retrieve command line argument values

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2007-07-31 (8 years ago) RSS 2.0 feedNot enough user ratingsTotal: 965 All time: 3,557 This week: 1,052Up
Version License Categories  
console_app 1.0GNU Lesser Genera...Console
Description Author  

This class can be used to parse and retrieve the values of arguments passed to PHP applications started from a command line shell or DOS.

It can:

- Parse arguments and extract option values according to a definition of the option switches.
- Generate the help screen to explain the options to the users
- Display formatted messages to the console with ASCII control sequences to set color, bold, underline, reverse and blink styles.
- Read a input parameters typed by the user in the console.
- Reconfigure configuration files interactively
- draw table and progression bar
This class does not require any specific PHP extension.

Picture of Jonathan Gotti
Name: Jonathan Gotti is available for providing paid consulting. Contact Jonathan Gotti .
Classes: 13 packages by
Country: France France
Age: 39
All time rank: 704 in France France
Week rank: 360 Down16 in France France Down
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Plain text file Console_app.php Class main class file
Plain text file console_app.php5 Class PHP 5 version of the main class
Accessible without login Plain text file fx-conf.php Aux. use to manage config file
Accessible without login Plain text file hello.php Example example

 Version Control Unique User Downloads Download Rankings  
 0%Total:965All time:3,557
 This week:0This week:1,052Up