This is a queue-based implementation of PSR-15: HTTP Server Request Handler.

v1.2.0 2024-09-07 17:45 UTC

This package is auto-updated.

Last update: 2024-10-07 18:00:45 UTC


README

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 Psr\Http\Server\MiddlewareInterface 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 PHPStan, Psalm, PHP Mess Detector, PHP_CodeSniffer, and comply to PSR-12 code style guidelines to make sure they can be combined and easily used in other projects.

Quick Start

The intended and recommended way of using this package is via Composer. The following command will get you the latest version:

composer require opencultureconsulting/psr15

All available versions as well as further information about requirements and dependencies can be found on Packagist.

Full Documentation

The full documentation is available on GitHub Pages or alternatively in doc/.

Quality Gates

PHPCS PHPMD

PHPStan Psalm