wecodein / http-middleware
基于PSR-7, PSR-15和PSR-17构建的PHP中间件
1.0.1
2018-12-28 12:06 UTC
Requires
- php: ^7.0
- psr/http-factory: ^1.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
Provides
- psr/http-middleware: dev-develop
- psr/http-middleware-implementation: ^1.0
This package is not auto-updated.
Last update: 2024-09-15 03:08:39 UTC
README
符合PSR-15规范的处理中间件队列的实现。
安装
推荐通过 Composer 进行安装。运行以下命令来安装最新版本的包并将其添加到项目的 composer.json
composer require wecodein/http-middleware
用法
$requestHandler = new RequestHandler($responseFactory, ...$middlewares); $response = $requestHandler->handle($serverRequest);
见 示例。
致谢
许可协议
在MIT许可下发布 - 有关详细信息,请参阅许可文件。