logifire/nano-middleware

PSR-15 请求处理器的实现

0.2.2 2021-09-21 18:10 UTC

This package is auto-updated.

Last update: 2024-09-06 00:20:39 UTC


README

Scrutinizer Code Quality Build Status

PSR-15 请求处理器的实现

参见 https://www.php-fig.org/psr/psr-15/

用法

    $handler = new RequestHandler();

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

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