Registry / async / react-promise-stream

react-promise-stream

JSON →
library1.7.0phppackagistunverified

The missing link between Promise-land and Stream-land for ReactPHP

composer require react/promise-stream
INSTALL
IMPORT
SIG · REACT-PROMISE-STRE
R
react-promise-stream
asyncphpv1.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.

UnwrapReadableStream
use React\Promise\Stream\UnwrapReadableStream;

Convert a promise to a readable stream

use React\Promise\Stream\UnwrapReadableStream; $stream = new UnwrapReadableStream($promise); $stream->on('data', function ($data) { echo $data; });
Debug
Known issues
gotchaRequires ReactPHP event loop to be running.
fix
Ensure you have an event loop running (e.g., React\EventLoop\Loop::run()).
affects: >=1.0.0
Upgrade
Version history
1.7.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
28
OpenAI (training)
2
Resources
react-promise-stream — pip install react-promise-stream · libregistry