14/06
2015
Wallogit.com
2017 © Pedro Peláez
OSReadLine (OS for Onesimus Systems) is a readline alternative for PHP. It fully supports unicode characters and implements the basic readline functionality such as history, line editing, and key mapping., (*1)
Example:, (*2)
include 'readline.php';
$readline = new onesimus\readline\Readline();
$line = $readline->readLine('prompt> ');
echo $line;
You can install OSReadLine by cloning this git repo, or with composer., (*3)
Composer:, (*4)
{
"require": {
"onesimus-systems/osreadline": "dev-master"
}
}
Inspiration and help was taken from the readline implementation in the Hoa\Console library., (*5)