Skip to content

onesimus-systems/osreadline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OSReadLine

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.

Example:

include 'readline.php';

$readline = new onesimus\readline\Readline();
$line = $readline->readLine('prompt> ');
echo $line;

Installation

You can install OSReadLine by cloning this git repo, or with composer.

Composer:

{
    "require": {
        "onesimus-systems/osreadline": "dev-master"
    }
}

Credits

Inspiration and help was taken from the readline implementation in the Hoa\Console library.

Releases

No releases published

Packages

No packages published

Languages