This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

0.0.1 2016-12-22 16:52 UTC

This package is auto-updated.

Last update: 2021-09-19 03:06:28 UTC


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.


    //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://');
    $conn = new React\Stream\Stream($client, $loop);
    $conn->pipe(new React\Stream\Stream(STDOUT, $loop));
    $conn->write("Hello World!\n");