nikic/fast-route
Fast request router for PHP
1.3.1
101M downloads/mo
#455 most downloaded on Packagist
nikic/FastRoute
What this package is like to depend on
Last release 1 months ago
09 Jul 2026
Ships unpredictably
gaps range from 3 weeks to 6.1 years
Most releases are documented
notes for 9 of 14 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
15 releases · first in 2014
1 release in the last 12 months
see the full history below
Release timeline
15 releases · Mar 2014 to Jul 2026Releases
latest 15-
2.0.0-beta104 Mar 2024 pre-releaseRelease notes
Open source →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
-
1.3.109 Jul 2026Release notes
Open source →This release ports the
.gitattributesconfiguration to reduce the size
of distribution files. -
v1.3.013 Feb 2018Release notes
Open source →- Improve type usage in doc comments.
- Switch coding style to PSR-2.
- Mark shape keys in FastRoute.hhi as optional. This adds support for HHVM >= 3.23 and removes support for HHVM < 3.23.
-
v1.2.019 Jan 2017Release notes
Open source →- Added support for route groups.
- Made some
RouteCollectorproperties protected instead of private.
-
v1.1.020 Oct 2016Release notes
Open source →Fixed
- If the
cacheDisabledoption is enabled, the cache file is no longer written. Previously it was not read, but still written. (#114)
Added
- Added convenience methods
get(),post(),put(),delete(),patch()andhead()to theRouteCollector. (#109)
- If the
-
v1.0.112 Jun 2016 -
v1.0.018 Apr 2016Release notes
Open source →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 :)
-
v0.8.025 Mar 2016Release notes
Open source →- Fixed fallback from HEAD to GET if dynamic HEAD routes are defined.
- First check all HEAD routes before attempting a GET fallback.
- Add support for hyphens in placeholder names.
- (Experimental.) Add support for fallback routes that match any method. These are specified using a
*method and matched after all other routes.
-
v0.7.020 Dec 2015Release notes
Open source →- Add HHI file for Hack typechecking support. The HHI file requires HHVM 3.9 or newer.
- Fix support for empty routes.
- Improve error message if optional part is not at the end of a route.
-
v0.6.018 Jun 2015Release notes
Open source →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
RouteParserwas changed to add another array level, which may need to be accounted for if you use a custom parser. -
v0.5.015 May 2015Nothing published for this version
-
v0.4.026 Feb 2015Nothing published for this version
-
v0.3.026 Nov 2014Nothing published for this version
-
v0.2.017 May 2014Nothing published for this version
-
v0.1.004 Mar 2014Nothing published for this version