/awesome-psr7

A curated list of amazingly awesome PHP libraries that implement psr7 or at least are compatible with it

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.

PSR-7 implementation

PSR-7 middleware stack management

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
) {
    // ...
}

PSR-7 middlewares

collections of middlewares

Authentication

Security

Optimisation

HTTP client

Miscellaneous