NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2065 most downloaded on Packagist
Router subcomponent for Mezzio
Latest stable
4.3.0
Last release 14 days ago
10 Nov 2026
Release timing varies
gaps range from 4 weeks to 12 months
Some releases are documented
notes for 28 of 56 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
56 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Total pull requests resolved: 2
[!IMPORTANT] Adds support for PHP 8.6
Feature release (minor)
Total pull requests resolved: 1
Feature release (minor)
webmozart/assert v2 thanks to @gsteelYour coding agent can read these notes before it upgrades. Set up the MCP server →
Total pull requests resolved: 2
Feature release (minor)
Total pull requests resolved: 1
4.0.x bugfix release (patch)
final addition to RuntimeException thanks to @gsteel71: Remove deprecated `ImplicitMethodsIntegrationTest` thanks to @gsteel
ImplicitMethodsIntegrationTest - this abstract test case was renamed for PHPUnit compatibility to AbstractImplicitMethodsIntegrationTest. This change will only affect integration tests for Router implementationsImplicitHeadMiddleware - it now only accepts a PSR-17 StreamFactoryInterface where previously, it also accepted an arbitrary callable.MethodNotAllowedMiddleware and ImplicitOptionsMiddleware. Previously, both of these middleware accepted a callable and a PSR-17 ResponseFactoryInterface. The ability to pass a callable has been removedreturn [
\Mezzio\Router\RouteCollector::class => [
'detect_duplicates' => true,
],
];
Now, the top level key of router should be used:return [
'router' => [
'detect_duplicates' => true,
],
];
Duplicate route detection still defaults to true so this change will affect users that explicitly turned off duplicate route detection, and, where duplicate routes exist, or the feature was turned off explictly to save the additional overhead in production.RouteResult - add types where missing thanks to @gsteelFixedResponseFactory test asset in src for use in the shipped integration test thanks to @gsteelImplicitMethodsIntegrationTest thanks to @gsteelMethodNotAllowedMiddleware and ImplicitOptionsMiddleware thanks to @gsteelImplicitHeadMiddleware thanks to @gsteelfinal keyword to all shipped classes thanks to @gsteelTotal pull requests resolved: 1
Feature release (minor)
webmozart/assert v2 thanks to @gsteelTotal pull requests resolved: 1
Feature release (minor)
Total pull requests resolved: 3
Feature release (minor)
Total pull requests resolved: 4
Feature release (minor)
Total pull requests resolved: 1
3.16.x bugfix release (patch)
Total pull requests resolved: 2
Feature release (minor)
StreamFactoryInterface Support in ImplicitHeadMiddleware thanks to @gsteel and @boesingTotal pull requests resolved: 1
Feature release (minor)
RouteCollectorInterface from the container thanks to @gsteel and @boesingTotal pull requests resolved: 1
Feature release (minor)
Total pull requests resolved: 1
Feature release (minor)
Total pull requests resolved: 1
Feature release (minor)
Total pull requests resolved: 1
Feature release (minor)
ExceptionInterface from Throwable thanks to @gsteelTotal pull requests resolved: 1
Feature release (minor)
Total pull requests resolved: 5
Feature release (minor)
prophecy dependency thanks to @alexraputaTotal pull requests resolved: 1
Feature release (minor)
psr/* dependencies thanks to @geerteltinkTotal pull requests resolved: 1
Feature release (minor)
Deprecated the callable response factory for ImplicitOptionsMiddleware and MethodNotAllowedMiddleware. This functionality will be removed in the next…
Feature release (minor)
PSR-17 supportPSR-17 support, the following middlewares have changed and can now be instantiated with both callable():ResponseInterface or an instance of ResponseFactoryInterface
ImplicitOptionsMiddlewareMethodNotAllowedMiddlewarecallable response factory for ImplicitOptionsMiddleware and MethodNotAllowedMiddleware. This functionality will be removed in the next major version.Added RouteCollectorInterface to provide a replacable route collector
Feature release (minor)
RouteCollectorInterface to provide a replacable route collectorRouteCollector now implements the new RouteCollectorInterfaceRouteCollectorInterface thanks to @boesing15: Fix problem with deprecated array_key_exists() for object. thanks to @nepster-web
array and ArrayAccess implementations for the config service used (only arrays were valid previously).Total pull requests resolved: 2
Mezzio\Router\DuplicateRouteDetector, which improves performance of duplicate route detection dramatically.#3 changes the constructor of the Mezzio\Router\RouteCollector class to allow passing an optional flag (enabled by default) indicating whether or not to perform duplicate route detection. Internally, when the flag is enabled, the collector instantiates and memoizes a DuplicateRouteDetector on the addition of the first route.
#3 changes the Mezzio\Router\RouteCollectorFactory behavior to optionally look for a Mezzio\Router\RouteCollector.detect_duplicates flag in the config service; if found, the value is used when instantiating the RouteCollector instance.
Feature release (minor)
Total pull requests resolved: 1
\Mezzio\Router\Test\ImplicitMethodsIntegrationTest,
as it will be removed in the next versions. Use new renamed class
\Mezzio\Router\Test\AbstractImplicitMethodsIntegrationTest instead.3.2.x bugfix release (patch)
Total pull requests resolved: 1
Added ----- - Nothing. Changed ------- - #6 moves the phpspec/prophecy requirement to the require-dev section, as it is unnedeed in production. Deprec
Added ----- - Nothing. Changed ------- - #5 removes verbiage in RouterInterface::addRoute() around when to raise exceptions within implementations. No
RouterInterface::addRoute() around when to raise exceptions within implementations. No current implementations have a need to, and the verbiage could almost be construed as proscribing implementation details.$methods and $name arguments to the Route constructor to make them nullable. Both already allowed null values internally, but the constructor did not reflect that.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.