logifire/nano-middleware

PSR-15 request handler implementation

0.1.1 2020-10-22 17:02 UTC

This package is auto-updated.

Last update: 2021-05-10 17:47:29 UTC


README

Scrutinizer Code Quality Build Status

A PSR-15 request handler implementation

See https://www.php-fig.org/psr/psr-15/

Usage

    $psr17_factory = new Psr17Factory();

    $handler = new RequestHandler($psr17_factory);

    $handler->addMiddleware(new Middleware());
    $handler->addMiddleware(new Middleware());

    $response = $handler->handle($server_request);