PHPackages                             league/route - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. league/route

ActiveLibrary[HTTP &amp; Networking](/categories/http)

league/route
============

Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.

6.2.0(1y ago)6633.1M↓16.5%126[4 issues](https://github.com/thephpleague/route/issues)20MITPHPPHP ^8.1CI passing

Since Jan 12Pushed 1mo ago29 watchersCompare

[ Source](https://github.com/thephpleague/route)[ Packagist](https://packagist.org/packages/league/route)[ Docs](https://github.com/thephpleague/route)[ GitHub Sponsors](https://github.com/philipobenito)[ RSS](/packages/league-route/feed)WikiDiscussions 7.x Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (45)Used By (20)

Route
=====

[](#route)

[![Author](https://camo.githubusercontent.com/f2e126954eb8a158735b338db05e8e66de0876fc1d1b84cec49928762e90c44b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d5068696c25323042656e6e6574742d626c75653f7374796c653d666c61742d737175617265)](https://github.com/philipobenito)[![Latest Version](https://camo.githubusercontent.com/24e94267234b96a98468ed06c1a5bf111e1300dfdad71adc1225ab6e9e57764c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7468657068706c65616775652f726f7574652e7376673f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/route/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/8336d34905eee31efed96b77b5a216c86250931f1024d36dffe960977abd712a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7468657068706c65616775652f726f7574652f746573742e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/thephpleague/route/actions/workflows/test.yml)[![Total Downloads](https://camo.githubusercontent.com/b8ca29d226ba75df354852446a0daf133ea3819eb504e5bace8940b94cf5ac27/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c65616775652f726f7574652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/league/route)

This package is compliant with [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md), [PSR-7](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-7-http-message.md), [PSR-11](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md), [PSR-15](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-15-request-handlers.md), [PSR-16](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-16-simple-cache.md) and [PSR-17](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-17-http-factory.md). If you notice compliance oversights, please send a patch via pull request.

Install
-------

[](#install)

Via Composer

```
$ composer require league/route
```

Requirements
------------

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 8.3
- PHP 8.4
- PHP 8.5

Documentation
-------------

[](#documentation)

Route has [full documentation](http://route.thephpleague.com), powered by [Jekyll](http://jekyllrb.com/).

Contribute to this documentation in the [docs directory](https://github.com/thephpleague/route/tree/master/docs/).

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/thephpleague/route/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Phil Bennett](https://github.com/philipobenito)
- [Nikita Popov](https://github.com/nikic) ([FastRoute](https://github.com/nikic/FastRoute))
- [All Contributors](https://github.com/thephpleague/route/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](https://github.com/thephpleague/route/blob/master/LICENSE.md) for more information.

###  Health Score

69

—

FairBetter than 100% of packages

Maintenance66

Regular maintenance activity

Popularity66

Solid adoption and visibility

Community50

Growing community involvement

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 71.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~93 days

Recently: every ~120 days

Total

45

Last Release

58d ago

Major Versions

4.5.0 → 5.0.02021-01-25

4.5.1 → 5.0.12021-03-26

4.5.2 → 5.x-dev2024-11-10

5.x-dev → 6.0.02024-11-10

4.x-dev → 7.x-dev2026-03-21

PHP version history (6 changes)1.0.0PHP &gt;=5.4.0

4.0.0PHP &gt;=7.1

5.0.0PHP ^7.2 || ^8.0

4.5.1PHP ^7.1 || ^8.0

6.0.0PHP ^8.1

7.x-devPHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/be6d3979e325bfabb0b44a688ecd4b064381dcfd1b6facca14c88e17684ec0f2?d=identicon)[philipobenito](/maintainers/philipobenito)

---

Top Contributors

[![philipobenito](https://avatars.githubusercontent.com/u/2077289?v=4)](https://github.com/philipobenito "philipobenito (274 commits)")[![shadowhand](https://avatars.githubusercontent.com/u/38203?v=4)](https://github.com/shadowhand "shadowhand (23 commits)")[![hannesvdvreken](https://avatars.githubusercontent.com/u/1410358?v=4)](https://github.com/hannesvdvreken "hannesvdvreken (13 commits)")[![delboy1978uk](https://avatars.githubusercontent.com/u/2684575?v=4)](https://github.com/delboy1978uk "delboy1978uk (11 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (10 commits)")[![jamesdb](https://avatars.githubusercontent.com/u/6299056?v=4)](https://github.com/jamesdb "jamesdb (7 commits)")[![craig-davis](https://avatars.githubusercontent.com/u/9907304?v=4)](https://github.com/craig-davis "craig-davis (6 commits)")[![McLotos](https://avatars.githubusercontent.com/u/8168531?v=4)](https://github.com/McLotos "McLotos (3 commits)")[![josevieirame](https://avatars.githubusercontent.com/u/1133889?v=4)](https://github.com/josevieirame "josevieirame (3 commits)")[![aag](https://avatars.githubusercontent.com/u/37850?v=4)](https://github.com/aag "aag (3 commits)")[![Exagone313](https://avatars.githubusercontent.com/u/11819703?v=4)](https://github.com/Exagone313 "Exagone313 (2 commits)")[![pine3ree](https://avatars.githubusercontent.com/u/3229979?v=4)](https://github.com/pine3ree "pine3ree (2 commits)")[![pwaring](https://avatars.githubusercontent.com/u/433556?v=4)](https://github.com/pwaring "pwaring (2 commits)")[![jrushlow](https://avatars.githubusercontent.com/u/40327885?v=4)](https://github.com/jrushlow "jrushlow (2 commits)")[![kamalkhan](https://avatars.githubusercontent.com/u/4675979?v=4)](https://github.com/kamalkhan "kamalkhan (2 commits)")[![willemwollebrants](https://avatars.githubusercontent.com/u/916958?v=4)](https://github.com/willemwollebrants "willemwollebrants (2 commits)")[![marekskopal](https://avatars.githubusercontent.com/u/33967656?v=4)](https://github.com/marekskopal "marekskopal (2 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (2 commits)")[![ZeljkaBlazek](https://avatars.githubusercontent.com/u/32762399?v=4)](https://github.com/ZeljkaBlazek "ZeljkaBlazek (1 commits)")[![abacaphiliac](https://avatars.githubusercontent.com/u/1656273?v=4)](https://github.com/abacaphiliac "abacaphiliac (1 commits)")

---

Tags

fastroutephproutingpsr-7routerleaguepsr7psr-15routedispatcherpsr15

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/league-route/health.svg)

```
[![Health](https://phpackages.com/badges/league-route/health.svg)](https://phpackages.com/packages/league-route)
```

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[sunrise/http-router

A powerful solution as the foundation of your project.

16249.8k10](/packages/sunrise-http-router)[wellrested/wellrested

Simple PHP Library for RESTful APIs

4818.7k4](/packages/wellrested-wellrested)[mezzio/mezzio-authentication-oauth2

OAuth2 (server) authentication middleware for Mezzio and PSR-7 applications.

28483.0k2](/packages/mezzio-mezzio-authentication-oauth2)[mezzio/mezzio-authentication

Authentication middleware for Mezzio and PSR-7 applications

121.6M26](/packages/mezzio-mezzio-authentication)[northwoods/router

Fast router for PSR-15 request handlers

161.4k](/packages/northwoods-router)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
