Download the PHP package affinity4/middleware-factory without Composer
On this page you can find all versions of the php package affinity4/middleware-factory. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download affinity4/middleware-factory
More information about affinity4/middleware-factory
Files in affinity4/middleware-factory
Package middleware-factory
Short Description Use Psr17Factories to dispatch PSR-15 middleware packages. Default Psr17Factory is Nyholm\Psr7\Factory\Psr17Factory
License MIT
Homepage https://github.com/affinity4/middleware-factory
Informations about the package middleware-factory
Affinity4: Middleware Factory
A fork of Middlewares\Utils package after they removed support and tests for Nyholm\Psr7.
This fork also upgrades PHPUnit to 8.1+, requires PHP7.2+ and drops support for GuzzleHttp, Slim/Http and Zend Diactoros. The versions of these Http libraries in Middlewares\Utils were quite old anyways, and many of those libraries will soon have their own Psr17 implementations anyways
Nyholm\Psr7\Factory\Psr17Factory was chosen due to it's performance compared the other Psr7 implementations
Factory
Used to create psr-7 instances of ServerRequestInterface
, ResponseInterface
, StreamInterface
and UriInterface
. Comes with support for Nyholm/psr7 out of the box, but you can register any different factory using the psr/http-factory interface.
Dispatcher
Minimalist PSR-15 compatible dispatcher
CallableHandler
To resolve and execute a callable. It can be used as a middleware, server request handler or a callable:
HttpErrorException
General purpose exception used to represent HTTP errors
Traits
Common utilities shared between many middlewares like the ability to customize PSR-17 factories
HasResponseFactory
HasStreamFactory
What Next
- Code style cleanup
- More tests to improve code coverage using @covers annotation to reduce false positives and ensure isolation of tests
Please see CONTRIBUTING for contributing details
The MIT License (MIT). Please see LICENSE for more information
All versions of middleware-factory with dependencies
psr/http-message Version ^1.0
psr/http-server-middleware Version ^1.0
psr/container Version ^1.0
psr/http-factory Version ^1.0
nyholm/psr7 Version ^1.1