You're probably looking for ReactPHP (http://reactphp.org/), or possibly Amp (http://amphp.org/).
There's also a collection of resources here: https://github.com/elazar/asynchronous-php
There's also a collection of resources here: https://github.com/elazar/asynchronous-php