onesimus-systems/osreadline

dev-master 2015-06-14 13:29 UTC

This package is auto-updated.

Last update: 2024-10-09 04:27:43 UTC


README

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.