PHP Classes

Console App: Parse and retrieve command line argument values

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 986 All time: 3,687 This week: 71Up
Version License Categories
console_app 1.0.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: 48
All time rank: 724 in France France
Week rank: 206 Down8 in France France Down
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files (4)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:986
This week:0
All time:3,687
This week:71Up