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.

Yet another boring PSR-15 middleware dispatcher

v0.1 2020-08-01 14:30 UTC

This package is auto-updated.

Last update: 2021-10-08 23:32:38 UTC


A boring PSR-15 Middleware dispatcher

Prosaic can run your incoming PSR-7 requests through a pipeline of PSR-15 middleware. There's no fancy builder methods, routing or DI container integration, it's really just a pipeline of middleware. That's it.


composer require rosstuck/prosaic


You can set up your middleware pipeline like so:


$dispatcher = new Prosaic\HttpDispatcher(
    new FirstMiddleware(),
    new SecondMiddleware(),
    new ThirdMiddleware()

$response = $dispatcher->dispatch($request);


composer test