Login   Register  
PHP Classes
elePHPant
Icontem

CLI Commander: Format console output and parse command arguments

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (36)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-01-13 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 297 All time: 6,629 This week: 1,366Up
Version License PHP version Categories  
cli-commander 1.0MIT/X Consortium License4.3PHP 5, Unix, Console
Description Author  

This class can format console output and parse command line arguments.

It can send commands to the console to perform actions to format the program output like defining the text foreground and background color, set the text style, set the terminal title, reset the terminal state, set the line and column position of the next text to be outputted, etc..

The class can also detect if the terminal is compatible with Xterm, is running a bash shell, and read characters and lines from the input.

The command line arguments can also be parsed into arrays.

Picture of Don Bauer
Name: Don Bauer <contact>
Classes: 3 packages by
Country: United States United States
Age: 29
All time rank: 2651337 in United States United States
Week rank: 1754 Up201 in United States United States Up

Screenshots  
  • XTerm_Example.png
  • ANSI_Example.png
  Files folder image Files  
File Role Description
Files folder imagedocs (8 files, 4 directories)
Files folder imageexamples (7 files)
Plain text file CLICommander.class.php Class Class source
Plain text file LICENSE Lic. Auxiliary data
Plain text file README Doc. Auxiliary data

  Files folder image Files  /  docs  
File Role Description
Files folder imageCLICommander (8 files)
Files folder imagemedia (2 files)
Files folder image__examplesource (1 file)
Files folder image__filesource (7 files)
  HTML file blank.html Doc. Documentation
  HTML file classtrees_CLICommander.html Doc. Documentation
  HTML file elementindex.html Doc. Documentation
  HTML file elementindex_CLICommander.html Doc. Documentation
  HTML file index.html Doc. Documentation
  HTML file li_CLICommander.html Doc. Documentation
  HTML file packages.html Doc. Documentation
  HTML file ric_README.html Doc. Documentation

  Files folder image Files  /  docs  /  CLICommander  
File Role Description
  HTML file CLICommander.html Doc. Documentation
  HTML file _CLICommander.class.php.html Doc. Documentation
  HTML file _examples---example.ansii.php.html Doc. Documentation
  HTML file _examples---example.arguments.php.html Doc. Documentation
  HTML file _examples---example.input.php.html Doc. Documentation
  HTML file _examples---example.shell.php.html Doc. Documentation
  HTML file _examples---exampl...lateOutput.php.html Doc. Documentation
  HTML file _examples---example.xterm.php.html Doc. Documentation

  Files folder image Files  /  docs  /  media  
File Role Description
  Plain text file banner.css Data Auxiliary data
  Plain text file stylesheet.css Data Auxiliary data

  Files folder image Files  /  docs  /  __examplesource  
File Role Description
  HTML file exsource_l_CLIComm...972a2752c6c3ca.html Doc. Documentation

  Files folder image Files  /  docs  /  __filesource  
File Role Description
  HTML file fsource_CLICommand...nder.class.php.html Doc. Documentation
  HTML file fsource_CLICommand...mple.ansii.php.html Doc. Documentation
  HTML file fsource_CLICommand....arguments.php.html Doc. Documentation
  HTML file fsource_CLICommand...mple.input.php.html Doc. Documentation
  HTML file fsource_CLICommand...mple.shell.php.html Doc. Documentation
  HTML file fsource_CLICommand...lateOutput.php.html Doc. Documentation
  HTML file fsource_CLICommand...mple.xterm.php.html Doc. Documentation

  Files folder image Files  /  examples  
File Role Description
  Plain text file example.ansii.php Example Example script
  Plain text file example.arguments.php Example Example script
  Plain text file example.input.php Example Example script
  Plain text file example.shell.php Example Example script
  Plain text file example.templateOutput.php Example Example script
  Plain text file example.xterm.php Example Example script
  Plain text file example.xtermList.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 94%Total:297All time:6,629
 This week:0This week:1,366Up