dlundgren/pipeware
Pipelined PSR-15 middleware
Maintainers
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
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT b3b9d1390e4d8892ffa8102c87ab3e0601600003
- David Lundgren <dlundgren.woop@syberisle.net>
README
👁 Latest Version on Packagist
👁 Software License
👁 Total Downloads
This is an example library for how to treat Middleware as a pipeline.
This uses the SyberIsle Pipeline as it's pipeline implementation.
Usage
$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
Change log
Please see CHANGELOG for more information what has changed.
Credits
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
