NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #511 most downloaded on Packagist
Fast request router for PHP
Latest stable
1.3.1
Last release 4 months ago
09 Jul 2026
Ships unpredictably
gaps range from 3 weeks to 6.1 years
Most releases are documented
notes for 12 of 14 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
15 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
This is a pre-release of FastRoute containing all recent improvements. It's meant for enabling downstream testing, specially the detection of unexpect
This is a pre-release of FastRoute containing all recent improvements.
It's meant for enabling downstream testing, specially the detection of unexpected BC-breaks.
In the meantime we'll be updating the documentation and dealing with any undesired breakage.
Check all changes in https://github.com/nikic/FastRoute/milestone/1?closed=1
This release ports the .gitattributes configuration to reduce the size of distribution files.
v1.3.1
This release ports the `.gitattributes` configuration to reduce the size
of distribution files.
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Improve type usage in doc comments.
Added support for route groups .
RouteCollector properties protected instead of private.If the cacheDisabled option is enabled, the cache file is no longer written. Previously it was not read, but still written.
Placeholder names may now start with an underscore ( _ ) character.
Placeholder names may now start with an underscore (_) character.
This is a re-release of version 0.8.0 without code changes. Given the number of dependent projects there should be a formally stable release :)
This is a re-release of version 0.8.0 without code changes. Given the number of dependent projects there should be a formally stable release :)
Fixed fallback from HEAD to GET if dynamic HEAD routes are defined.
* method and matched after all other routes.Add HHI file for Hack typechecking support. The HHI file requires HHVM 3.9 or newer.
Added support for trailing optional segments, for example the route
Added support for trailing optional segments, for example the route
$r->addRoute('GET', '/foo[/{bar}[/{baz}]]', 'handler');is equivalent to the three routes
$r->addRoute('GET', '/foo', 'handler');
$r->addRoute('GET', '/foo/{bar}', 'handler');
$r->addRoute('GET', '/foo/{bar}/{baz}', 'handler');As a result of this additional the output format for RouteParser was changed to add another array level, which may need to be accounted for if you use a custom parser.
Fixed fallback of static routes to dynamic routes with different allowed HTTP methods.
routeCollector option to dispatcher functions. (#40)simpleDispatcher() and cachedDispatcher() functions will now only be defined if they do not yet exist, resolving some autoloading issues. (#39)This release changes the structure of the cached data (if cachedDispatcher is used), so the cache file should be removed after the update.
This release adds support for registering a route for multiple HTTP methods at the same time, by passing an array for the method parameter of RouteCol
This release adds support for registering a route for multiple HTTP methods at the same time, by passing an array for the method parameter of RouteCollector::addRoute(). For example:
/** @var RouteCollector $r */
$r->addRoute(['GET', 'POST'], '/foo/{bar}', 'handlerForGetAndPost');
// This is equivalent to:
$r->addRoute('GET', '/foo/{bar}', 'handlerForGetAndPost');
$r->addRoute('POST', '/foo/{bar}', 'handlerForGetAndPost');
This release fixes a routing bug, which could occur if two non-disjoint routes for different HTTP methods are defined:
This release fixes a routing bug, which could occur if two non-disjoint routes for different HTTP methods are defined:
$dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) {
$r->addRoute('GET', '/user/{name}', 'GET with default placeholder pattern');
$r->addRoute('POST', '/user/{name:[a-z]+}', 'POST with custom placeholder pattern');
});
A request to POST /user/foobar was previously rejected with 405 Method Not Supported and is now correctly matched.
For more information see #25.
This release changes the structure of the cached data (if cachedDispatcher is used), so the cache file should be removed after the update.
Nothing published for this version
Nothing published for this version
One column per quarter.