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
2024-01-09 (4 days ago) RSS 2.0 feedStarStarStarStar 79%Total: 406 This week: 4All time: 6,503 This week: 89Up
Version License PHP version Categories
cli-commander 1.21MIT/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

 

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

 Version Control Unique User Downloads Download Rankings  
 94%
Total:406
This week:4
All time:6,503
This week:89Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:100%StarStarStarStarStarStar
Documentation:91%StarStarStarStarStar
Examples:100%StarStarStarStarStarStar
Tests:-
Videos:-
Overall:79%StarStarStarStar
Rank:35