2017 © Pedro Peláez
 

library readline-react

Experimental bindings for the readline extension (ext-readline)

image

clue/readline-react

Experimental bindings for the readline extension (ext-readline)

  • Sunday, January 29, 2017
  • by clue
  • Repository
  • 4 Watchers
  • 7 Stars
  • 26 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

clue/readline-react Build Status

Experimental bindings for the readline extension (ext-readline), (*1)

Note: This project is in early alpha stage! Feel free to report any issues you encounter., (*2)

Quickstart example

Once installed, you can use the following code to present a prompt in a CLI program:, (*3)

$readline = new Readline($loop, 'demo > ');

$readline->on('line', function ($line) use ($readline) {
    var_dump($line);

    if ($line === 'quit' || $line === 'exit') {
        $readline->pause();
    }
});

See also the examples., (*4)

Install

The recommended way to install this library is through composer. New to composer?, (*5)

{
    "require": {
        "clue/readline-react": "dev-master"
    }
}

License

MIT, (*6)

The Versions

29/01 2017

dev-master

9999999-dev https://github.com/clue/php-readline-react

Experimental bindings for the readline extension (ext-readline)

  Sources   Download

MIT

The Requires

 

by Christian Lück

async reactphp readline ext-readline