logifire/nano-middleware

PSR-15 request handler implementation

0.2.2 2021-09-21 18:10 UTC

This package is auto-updated.

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


README

Scrutinizer Code Quality Build Status

A PSR-15 request handler implementation

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

Usage

    $handler = new RequestHandler();

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

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