opencultureconsulting / psr15
This is a queue-based implementation of PSR-15: HTTP Server Request Handler.
Fund package maintenance!
sebastian-meyer
paypal.me/sebastianmeyer
Requires
- php: ^8.1
- guzzlehttp/psr7: ^2.7
- opencultureconsulting/basics: ^2.1
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- phpdocumentor/shim: ^3.5
- phpmd/phpmd: ^2.15
- phpstan/phpstan: ^1.12
- phpstan/phpstan-strict-rules: ^1.6
- squizlabs/php_codesniffer: ^3.10
- vimeo/psalm: ^5.25
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/.