onesimus-systems / osreadline
Installs: 16
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/onesimus-systems/osreadline
Requires (Dev)
- phpunit/phpunit: 4.7.*
This package is auto-updated.
Last update: 2025-10-09 06:45:23 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.