Registry / cli / clue-stdio-react

clue-stdio-react

JSON →
library2.7.0phppackagistunverified

Async, event-driven console input & output (STDIN, STDOUT) for truly interactive CLI applications, built on top of ReactPHP.

composer require clue/stdio-react
INSTALL
IMPORT
SIG · CLUE-STDIO-REACT
C
clue-stdio-react
cliphpv2.7.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Stdio
use Clue\React\Stdio\Stdio;

Create an interactive CLI application with async I/O.

use Clue\React\Stdio\Stdio; $stdio = new Stdio(); $stdio->on('data', function ($line) { echo 'You said: ' . $line; });
Debug
Known issues
gotchaRequires ReactPHP event loop to be running.
fix
Ensure you call `Loop::run()` after setting up Stdio.
affects: >=2.0.0
Upgrade
Version history
2.7.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
Resources
clue-stdio-react — pip install clue-stdio-react · libregistry