PHP Classes

CLI Commander: Format console output and parse command arguments

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (35)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2022-10-27 (1 month ago) RSS 2.0 feedStarStarStarStar 79%Total: 394 This week: 1All time: 6,570 This week: 270Up
Version License PHP version Categories
cli-commander 1.15MIT/X Consortium ...4.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: 37
All time rank: 2705367 in United States United States
Week rank: 287 Up26 in United States United States Up

Details
ABOUT CLICommander is a class that enables both ANSI and xterm color support for PHP command line applications. Additionally, it offers features such as formatting template support, advanced command line options handling, and a whole lot more. CLICommander allows you to make rich command line user interfaces without having to include extentions such as ncurses. FEATURES * Full ANSI 16-Color and Style support * Xterm 256-Color support * ANSI Terminal Bell Support * ANSI Terminal Title Support * Masked Input Support * Simple User Prompts * Advanced Argument Handling * Template Driven Formatting * HTML to xterm Color Conversion VERSION HISTORY 1.0 - 2012-01-11 Initial Creation HOW TO USE Coming soon...
Screenshots  
  • XTerm_Example.png
  • ANSI_Example.png
  Files folder image Files  
File Role Description
Files folder imagedocs (8 files, 4 directories)
Files folder imageexamples (6 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

 Version Control Unique User Downloads Download Rankings  
 94%
Total:394
This week:1
All time:6,570
This week:270Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:91%StarStarStarStarStar
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:79%StarStarStarStar
Rank:39