dlundgren / pipeware
管道化PSR-15中间件
3.0.0
2019-06-18 03:41 UTC
Requires
- php: >=7.2
- psr/container: ^1.0
- psr/http-factory: ^1.0
- psr/http-server-middleware: ^1.0
- syberisle/pipeline: ^1.0
Requires (Dev)
- aura/di: ^3.4
- henrikbjorn/phpspec-code-coverage: ^3.0
- middlewares/utils: ^1 | ^2
- phpspec/phpspec: ^3.0
- slim/http: dev-master
- syberisle/coding-standards: ^2.0
README
这是一个如何将中间件视为管道的示例库。
它使用SyberIsle Pipeline作为其管道实现。
用法
$stack = new \Pipeware\Stack( new \Pipeware\Containerized($container), // any psr-11 compatible container new \Pipeware\Processor() ); // append your responder $stack->append(new Responder()); // append your error handler $stack->append(new ErrorHandler()); // have the stack handle your request $response = $stack->handle($request); // do something with your response if needed
变更日志
有关已更改内容的更多信息,请参阅CHANGELOG。
致谢
有关详细信息,请参阅CONTRIBUTING。
许可证
MIT许可证(MIT)。请参阅许可证文件以获取更多信息。