Registry / async / react-stream

react-stream

JSON →
library1.4.0phppackagistunverified

Event-driven readable and writable streams for non-blocking I/O in ReactPHP

asyncnetworking
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.

use React\Stream\ReadableResourceStream;

Create a readable stream from STDIN and listen for data events.

use React\Stream\ReadableResourceStream; use React\EventLoop\Factory; $loop = Factory::create(); $stream = new ReadableResourceStream(STDIN, $loop); $stream->on('data', function ($data) { echo 'Received: ' . $data; }); $loop->run();
Debug
Known footguns
gotchaRequires an event loop to function; streams are non-blocking.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources