Requirements
Environment
This package requires at least PHP 8.1 .
It is highly recommended to use Composer for dependency management and autoloading, although it is technically not strictly required for using any of these classes. But it certainly makes it a lot easier!
Dependencies
This package obviously depends on psr/http-server-handler and psr/http-server-middleware which define the standard PSR-15: HTTP Server Request Handlers interfaces.
It works with any implementation of PSR-7: HTTP Message Interfaces and PSR-17: HTTP Factories. If the great guzzlehttp/psr7 library is installed, it's used by default, so you don't have to configure anything. Otherwise, you have to pass the server request and a response factory of your preferred implementation to the constructors (see QueueRequestHandler and ErrorMiddleware). To use Guzzle, just install it alongside this package:
composer require guzzlehttp/psr7
The middleware queue is based on a StrictQueue of the opencultureconsulting/basics package which also provides some useful traits.