voryx / pool-poretni-cnysa-tcaer
Installs: 15
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 0
pkg:composer/voryx/pool-poretni-cnysa-tcaer
Requires
- php: ^7.0
- async-interop/event-loop: ^0.3
- react/event-loop: ^0.4.2
Requires (Dev)
- amphp/loop: dev-master
- phpunit/phpunit: ^5.0
- wyrihaximus/react-async-interop-loop: dev-master
This package is auto-updated.
Last update: 2025-09-19 11:32:47 UTC
README
This library allows you use any async-interop loop with any library that requires the ReactPHP loop.
note: When all ReactPHP projects support the interop loop, this library will no longer be necessary.
Example
//Create your async-interop loop $loop = new \Voryx\React\AsyncInterop\Loop(); //Then use your ReactPHP loop like you normally would $client = stream_socket_client('tcp://127.0.0.1:1337'); $conn = new React\Stream\Stream($client, $loop); $conn->pipe(new React\Stream\Stream(STDOUT, $loop)); $conn->write("Hello World!\n"); $loop->run();