PHPLine is a PHP library for handling console input. It is similar in functionality to BSD editline and GNU readline. People familiar with the readline/editline capabilities for modern shells (such as bash and tcsh) will find most of the command editing features of PHPLine to be familiar.
PHPLine is based on JLine2 and aims at being almost fully API-compatible to it.
PHPLine is distributed under the BSD License, meaning that you are completely free to redistribute, modify, or sell it with almost no restrictions.
- PHP 5.3+ with read/write support for phar archives on the command line
Check out and build:
git clone git://github.com/TimWolla/phpline.git
cd phpline
./build.php