PSR15
PSR-15, the PHP Standard Recommendation for HTTP Server Request Handlers, is a specification that standardizes server-side HTTP middleware and request handlers in PHP applications. It defines interfaces that allow middleware components to be composed into a request-handling pipeline and to interoperate across frameworks and libraries.
The core interfaces are Psr\Http\Server\MiddlewareInterface and Psr\Http\Server\RequestHandlerInterface. MiddlewareInterface defines a single method, process(ServerRequestInterface $request, RequestHandlerInterface
Usage within a pipeline is straightforward: a middleware component implements MiddlewareInterface and can either return a
Impact and ecosystem: PSR-15 provides a common contract that enables middleware reuse across frameworks. It is
Relation to other standards: PSR-15 complements PSR-7 for HTTP message objects and PSR-17 for factories. It does