This is a queue-based implementation of PSR-15: HTTP Server Request Handler for PHP projects.
Go to file
Sebastian Meyer 02eb93bf3b Update documentation 2024-09-07 18:52:50 +02:00
.github Update GitHub workflows 2024-09-07 18:52:38 +02:00
.phpdoc Update documentation 2024-09-07 18:52:50 +02:00
doc Update documentation 2024-09-07 18:52:50 +02:00
src Add Warning header to exception response 2024-09-07 18:52:20 +02:00
.editorconfig Initial upload 2023-11-19 21:28:27 +01:00
.gitattributes Update GitHub workflows 2024-03-31 18:36:06 +02:00
.gitignore Add PHP Mess Detector to dev tools 2024-09-07 18:50:24 +02:00
.php-cs-fixer.dist.php Update GitHub workflows 2024-03-31 18:36:06 +02:00
.phpmd.dist.xml Add PHP Mess Detector to dev tools 2024-09-07 18:50:24 +02:00
CODE_OF_CONDUCT.md Initial upload 2023-11-19 21:28:27 +01:00
CONTRIBUTING.md Initial upload 2023-11-19 21:28:27 +01:00
LICENSE Initial upload 2023-11-19 21:28:27 +01:00
README.md Add PHP Mess Detector to dev tools 2024-09-07 18:50:24 +02:00
composer.json Update dependencies 2024-09-07 18:50:59 +02:00
phpcs.xml.dist Update GitHub workflows 2024-03-31 18:36:06 +02:00
phpdoc.dist.xml Update GitHub workflows 2024-03-31 18:36:06 +02:00
phpstan.dist.neon Initial upload 2023-11-19 21:28:27 +01:00
psalm.xml.dist Add Composer commands for tools 2024-07-11 13:56:40 +02:00

README.md

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 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