PSR-15 Queue

Overview

The package contains an implementation of PSR-15: HTTP Server Request Handlers in a queue-based variant. A QueueRequestHandler handles an incoming HTTP request by passing it through a queue of one or more middlewares. The MiddlewareQueue provides the middlewares in first-in, first-out (FIFO) order, i.e. the HTTP request is passed from middleware to middleware preserving the order in which the middlewares were added to the queue. An AbstractMiddleware helps developing your own middlewares, but you can also use any middleware implementing the Psr\Http\Server\MiddlewareInterface.

All files share the highest coding standards of PHPStan and Psalm, and full PSR-12 compliance to make sure they can be combined and easily used in other projects.

Search results