Awesome PSR-7
A curated list of amazingly awesome PHP libraries that implement PSR-7 or at least are compatible with it.
I loved the StackPHP initiative but since PSR-7 is out I think the way to do good middlewares is by building them to handle PSR-7 request/response.
This libraries handle a stack of middlewares that will be called successively during the request treatment. Since PSR-7 is only about the message and it doesn't define middleware. Any way a common signature for a middleware is anything callable that matches this :
function (
Psr\Http\Message\ResponseInterface $request,
Psr\Http\Message\RequestInterface $response,
callable $next // the next middleware
) {
// ...
}
- Relay
- Slim
- Zend-stratigility
- Expressive, based on Zend-stratigility
- SpiralFramework
- PSR-7 Storage-less HTTP Sessions
- PSR-7 JWT Authentication Middleware
- PSR-7 HMAC Authentication library