PSR-15 Queue

Queue-based HTTP Server Request Handler

An implementation of PSR-15: HTTP Server Request Handlers.

The PHP Standard Recommendation PSR-15 defines interfaces for server request handlers and proposes a queue-based implementation using different middlewares for processing requests and preparing responses. This package follows those guidelines and provides a HTTP server request handler implementation using a middleware queue. It also contains an abstract class for middlewares to ease the process of writing your own middleware, but you can just as well use any middleware that implements the middleware interface specified by PSR-15 (e.g. from the awesome PSR-15 HTTP Middlewares project).

All components of this package follow the highest coding standards of Psalm, PHPStan, PHP Mess Detector, PHP_CodeSniffer, and comply to PSR-12 code style guidelines to make sure they can be combined and easily re-used in other projects.

Table of Contents

Documentation

Overview
QueueRequestHandler
MiddlewareQueue
AbstractMiddleware
User Guide
Requirements
Installation
Usage
Changelog

Packages

PSR15

Search results