PHP Classes

PHP CLI IO: Read and write data to console terminals

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 79 All time: 10,108 This week: 206Up
Version License PHP version Categories
cli-io 1.0BSD License5PHP 5, Console


This package can read and write data to console terminals.

It provides several functions to interact with users via a console terminal. Currently it can:

- Read data from the input stream
- Write formatted data to the output
- Prompt the user input and reads a response
- Hide the console input cursor
- Change the position of the cursor on the terminal
- Erase text in the current cursor position
- Output a tab, carriage return, new line or backspace
- Check if PHP is running the cli version
- Check is PHP is running on Windows or in a POSIX environment

Picture of chrys ugwu
  Performance   Level  
Name: chrys ugwu <contact>
Classes: 16 packages by
Country: Nigeria Nigeria
Age: 31
All time rank: 16817 in Nigeria Nigeria
Week rank: 311 Up10 in Nigeria Nigeria Down
Innovation award
Innovation award
Nominee: 4x



Terminal IO reader/writer

For POSIX systems only, for now.

  Files folder image Files  
File Role Description
Files folder imagesrc (2 files)
Plain text file composer.json Data Auxiliary data
Plain text file LICENSE Lic. License text
Plain text file Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file CliIO.php Class Class source
  Plain text file Exception.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:10,108
This week:206Up