zendframework/zend-stratigility
Zend Stratigility is a lightweight middleware pipeline for PHP, built around PSR-7 HTTP messages. Compose request/response processing with reusable middleware, route-like piping, and error handling—ideal for building microservices or adding middleware to existing apps.
Install this library using composer:
$ composer require zendframework/zend-diactoros zendframework/zend-stratigility
Stratigility has the following dependencies (which are managed by Composer):
psr/http-message, which provides the interfaces specified in PSR-7, and type-hinted against in this package. In order to use Stratigility, you will need an implementation of PSR-7; one such package is Diactoros.
psr/http-server-middleware, which provides the PSR-15 interfaces.
zendframework/zend-escaper, used by the ErrorHandler middleware and the
(legacy) FinalHandler implementation for escaping error messages prior to
passing them to the response.
You can provide your own request and response implementations if desired as long as they implement the PSR-7 HTTP message interfaces.
How can I help you explore Laravel packages today?