Skip to content

v0.10.0

Compare
Choose a tag to compare
@clue clue released this 05 Mar 14:50
· 119 commits to main since this release
de56bde

Imported release from original tag date 2022-07-14.

  • Feature: Built-in support for fibers on PHP 8.1+ with stable reactphp/async.
    (#168 by @clue)

    $app->get('/book/{isbn}', function (Psr\Http\Message\ServerRequestInterface $request) use ($db) {
        $isbn = $request->getAttribute('isbn');
        $result = await($db->query(
           'SELECT title FROM book WHERE isbn = ?',
           [$isbn]
        ));
    
        assert($result instanceof React\MySQL\QueryResult);
        $data = $result->resultRows[0]['title'];
    
        return React\Http\Message\Response::plaintext(
            $data
        );
    });
  • Feature: Support PSR-11 container interface by using DI container as adapter.
    (#163 by @clue)

  • Minor documentation improvements.
    (#158 by @clue and #160 by @SimonFrings)