PHP Classes
elePHPant
Icontem

PHP CLI Input: Process keys pressed by the user in the shell

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-08-21 (1 year ago) RSS 2.0 feedNot yet rated by the usersTotal: 194 All time: 7,364 This week: 1,055Up
Version License PHP version Categories  
cli-input 0.3MIT/X Consortium License5.0PHP 5, Console
Description Author  

This class can process keys pressed by the user in the shell.

It can read the characters typed by the user in a command line shell ANSI terminal and return what the user entered.

The class can invoke given callback functions when the user presses certain keys like cursor, escape, return, tab, backspace, delete, or any other character.

The callback functions can perform actions that alter the text entered by the user like for instance performing auto-completion.

Picture of Gaspar
Name: Gaspar <contact>
Classes: 1 package by
Country: Spain Spain
Age: ???
All time rank: 365795 in Spain Spain
Week rank: 1681 Up41 in Spain Spain Up

  Files folder image Files  
File Role Description
Plain text file CLIInput.class.php Class Class source
Accessible without login Plain text file clitest.php Example Example script
Accessible without login Plain text file clitest2.php Example Example script
Accessible without login Plain text file README.md Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%Total:194All time:7,364
 This week:0This week:1,055Up
 User Comments (1)  
 
good
1 year ago (Rahul Shambharkar)
70%StarStarStarStar