PHP Classes

Console App: Parse and retrieve command line argument values

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 985 All time: 3,688 This week: 571Up
Version License Categories
console_app 1.0.0GNU Lesser Genera...Console


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: 47
All time rank: 724 in France France
Week rank: 225 Down7 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  
This week:0
All time:3,688
This week:571Up