PackageTrack
Sign in Get early access

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 2026
2015 2017 2019 2021 2023 2025
Release Pre-release

Releases

latest 15
  1. 2.0.0-beta1 04 Mar 2024 pre-release
    Release notes

    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

    Open source →
  2. 1.3.1 09 Jul 2026
    Release notes

    This release ports the .gitattributes configuration to reduce the size
    of distribution files.

    Open source →
  3. v1.3.0 13 Feb 2018
    Release notes
    • 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.
    Open source →
  4. v1.2.0 19 Jan 2017
    Release notes
    • Added support for route groups.
    • Made some RouteCollector properties protected instead of private.
    Open source →
  5. v1.1.0 20 Oct 2016
    Release notes

    Fixed

    • If the cacheDisabled option 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() and head() to the RouteCollector. (#109)
    Open source →
  6. v1.0.1 12 Jun 2016
    Release notes

    Placeholder names may now start with an underscore (_) character.

    Open source →
  7. v1.0.0 18 Apr 2016
    Release notes

    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 :)

    Open source →
  8. v0.8.0 25 Mar 2016
    Release notes
    • 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.
    Open source →
  9. v0.7.0 20 Dec 2015
    Release notes
    • 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.
    Open source →
  10. v0.6.0 18 Jun 2015
    Release notes

    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.

    Open source →
  11. v0.5.0 15 May 2015

    Nothing published for this version

  12. v0.4.0 26 Feb 2015

    Nothing published for this version

  13. v0.3.0 26 Nov 2014

    Nothing published for this version

  14. v0.2.0 17 May 2014

    Nothing published for this version

  15. v0.1.0 04 Mar 2014

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive