Skip to content

Releases: reactphp-parallel/psr-15-adapter

1.0.1

10 Sep 21:02
72a1d8d
Compare
Choose a tag to compare

1.0.1

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

PHP 🐘,Source 🔮,bug

1.0.0

10 Sep 18:07
c65bafd
Compare
Choose a tag to compare

Initial release

Really proud to release the initial version of the next generation of for/http-middleware-psr15-adapter. Where for/http-middleware-psr15-adapter relies on tricks like realtime monkey patching and clever use of generators as coroutines to achieve bridging react/http middleware and PSR-15 middleware. This package uses only threads to achieve a bridge between them without having to change any monkey patching.

Usage

The middleware adapter accepts any PSR-15 middleware instance that meets for following criteria:

  • Only uses scalars and userland classes
  • Doesn't hold references to anything but scalars and userland classes
  • Doesn't have internal state or relies on external state
$loop = Factory::create();
$pool = new Infinite($loop, 10);
$eventLoopBridge = new EventLoopBridge($loop);
$streamFactory = new StreamFactory($eventLoopBridge);
$psr15Middleware = new ThePsr15MiddlewareOfYourChoice();
$server = new React\Http\Server(
    $loop,
    new ReactMiddleware($streamFactory, $pool, $psr15Middleware, $loop, $eventLoopBridge)
);

1.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 12
  • Total contributors: 3

Dependencies 📦,Feature 🏗,PHP 🐘

Documentation 📚,Feature 🏗,MarkDown 📝

Feature 🏗