NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist · #2505 most downloaded on Packagist
Common utils for PSR-15 middleware packages
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 2.5 years
Nearly every release is documented
notes for 33 of 33 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
33 releases · first in 2016
See CHANGELOG
See CHANGELOG
See CHANGELOG
One column per quarter.
Support for PHP prior to 8.2 8.1.
See CHANGELOG
See CHANGELOG
See CHANGELOG
See CHANGELOG
Factory as follows:Factory::setFactory(
new FactoryDiscovery([
'request' => 'Zend\Diactoros\RequestFactory',
'response' => 'Zend\Diactoros\ResponseFactory',
'serverRequest' => 'Zend\Diactoros\ServerRequestFactory',
'stream' => 'Zend\Diactoros\StreamFactory',
'uploadedFile' => 'Zend\Diactoros\UploadedFileFactory',
'uri' => 'Zend\Diactoros\UriFactory',
])
);
See CHANGELOG
See CHANGELOG
See CHANGELOG
FactoryInterface that returns all PSR-17 factoriesFactoryDiscovery class to discover automatically PSR-17 implementation librariesFactory::getFactory() and Factory::setFactory() to set manually PSR-17 factoriesFactory::getResponseFactory()Factory::getRequestFactory()Factory::getServerRequestFactory()Factory::getStreamFactory()Factory::getUriFactory()Factory::getUploadedFileFactory()Sunrise to the list of factories detected automaticallyFactory::setStrategyHttpErrorException::setContext method, to make the exception class inmutableHasResponseFactory and HasStreamFactorySee CHANGELOG
See CHANGELOG
Middlewares\Utils\Dispatcher implements RequestHandlerInterface [#16], [#17]See CHANGELOG
See CHANGELOG
Nyholm\Psr7 to the list of factories detected automaticallyNew trait HasResponseFactory used by many middlewares that need to configure the PSR-17 response factory.
HasResponseFactory used by many middlewares that need to configure the PSR-17 response factory.HasStreamFactory used by many middlewares that need to configure the PSR-17 stream factory.New methods added to Factory to return PSR-17 factories: getResponseFactory, getServerRequestFactory, getStreamFactory and getUriFactory.
Factory to return PSR-17 factories: getResponseFactory, getServerRequestFactory, getStreamFactory and getUriFactory.Factory::setStrategies() to configure the priority order of the Diactoros, Guzzle and Slim factories or register new classes.Callablehandler constructor to pass a response factoryhttp-interop/http-factory with psr/http-factoryFactory::createServerRequest() to be aligned with PSR-17Factory::createStream() to be aligned with PSR-17Factory::createResponse() to be aligned with PSR-17Updated http-interop/http-factory to 0.4
http-interop/http-factory to 0.4Imported HttpErrorException from error handler middleware
HttpErrorException from error handler middlewareReplaced http-interop/http-server-middleware with psr/http-server-middleware.
http-interop/http-server-middleware with psr/http-server-middleware.Middlewares\Utils\Helpers because contains just one helper and it's no longer needed.New class RequestHandlerContainer implementing PSR-11 to resolve handlers in any format (classes, callables) and return PSR-15 RequestHandlerInterface
RequestHandlerContainer implementing PSR-11 to resolve handlers in any format (classes, callables) and return PSR-15 RequestHandlerInterface instances. This can be used to resolve router handlers, for example.CallableHandler was simplified. Removed $resolver and $arguments in the constructor.RequestHandlerContainer, or any other PSR-11 implementation.The minimum PHP version supported is 7.0
http-interop/http-middleware with http-interop/http-server-middleware.Middlewares\Utils\CallableHandler signature. Now it is instantiable and can be used as middleware and server request handler.Middlewares\Utils\CallableMiddleware. Use Middlewares\Utils\CallableHandler instead.Append .dist suffix to phpcs.xml and phpunit.xml files
.dist suffix to phpcs.xml and phpunit.xml fileshttp-interop/http-middleware to 0.5Middlewares\Utils\CallableHandler expects one of the following values returned by the callable:
Middlewares\Utils\CallableHandler expects one of the following values returned by the callable:
Psr\Http\Message\ResponseInterfacenull or scalar__toString method implemented
Otherwise, throws an UnexpectedValueExceptionMiddlewares\Helpers::fixContentLength only modifies or removes the Content-Length header, but does not add it if didn't exist previously.New class Middlewares\Utils\Helpers with common helpers to manipulate PSR-7 messages
Middlewares\Utils\Helpers with common helpers to manipulate PSR-7 messagesMiddlewares\Utils\Helpers::fixContentLength used to add/modify/remove the Content-Length header of a http message.http-interop/http-factory to 0.3### Fixed - Fixed changelog file
Replaced deprecated container-interop by psr/contaienr (PSR-11).
container-interop by psr/contaienr (PSR-11).Middlewares\Utils\Dispatcher throws exceptions if the middlewares does not implement Interop\Http\ServerMiddleware\MiddlewareInterface or does not return an instance of Psr\Http\Message\ResponseInterface.Middlewares\Utils\Factory namespace.Callable resolves to create callables from various representations
Middlewares\Utils\CallableHandler::resolveUpdated http-interop/http-middleware to 0.4
http-interop/http-middleware to 0.4friendsofphp/php-cs-fixer to 2.0New static helper Middlewares\Utils\Dispatcher::run to create and dispatch a request easily
Middlewares\Utils\Dispatcher::run to create and dispatch a request easilyEnsure that the body of the serverRequest is writable and seekable.
Middlewares\Utils\Dispatcher accepts Closure as middleware components
Middlewares\Utils\Dispatcher accepts Closure as middleware componentsMiddlewares\Utils\Dispatcher creates automatically a response if the stack is exhaustedMiddlewares\Utils\CallableMiddleware class, to create middlewares from callables
Middlewares\Utils\CallableMiddleware class, to create middlewares from callablesMiddlewares\Utils\Dispatcher class, to execute the middleware stack and return a response.Updated http-interop/http-factory to 0.2
http-interop/http-factory to 0.2Bug in CallableHandler that resolve to the declaring class of a method instead the final class.
Middlewares\Utils\CallableHandler class, allowing to resolve and execute callables safely.
Middlewares\Utils\CallableHandler class, allowing to resolve and execute callables safely.### Added - Uri factory
[#16]: https://github.com/middlewares/utils/issues/16 [#17]: https://github.com/middlewares/utils/issues/17 [#20]: https://github.com/middlewares/util
Your coding agent can read these notes before it upgrades. Set up the MCP server →