PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2023-06-02 (4 months ago) RSS 2.0 feedNot yet rated by the usersTotal: 255 All time: 7,838 This week: 116Up
Version License PHP version Categories
cli-input 0.10MIT/X Consortium ...5.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: 3947106 in Spain Spain
Week rank: 569 Up20 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:255
This week:0
All time:7,838
This week:116Up
User Comments (1)
good
10 years ago (Rahul Shambharkar)
70%StarStarStarStar