Use my two packages achieved asynchronous http request & response (non-blocking I/O), like javascript but use MySQL objects not PDO and we have alternative Idea going with Fast-route and React php Promise library.
CloverPHP is a routing library and PulsePHP is a event-loop and async/await library.
php
use function PulsePHP\Async\async; use function PulsePHP\Async\await; use Clover\Http\{Request, Response}; $route->get('/api/users', async( function (Request $req, Response $res) use ($db) { $users = await( $db->table('users')->get() ); return $res->json($users); } ));
commit 18de6b4