league / route
Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
Fund package maintenance!
7.0.0
2026-07-14 08:51 UTC
Requires
- php: ^8.3
- nikic/fast-route: ^1.3
- psr/container: ^2.0
- psr/http-factory: ^1.0
- psr/http-message: ^2.0
- psr/http-server-handler: ^1.0.1
- psr/http-server-middleware: ^1.0.1
- psr/simple-cache: ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- laminas/laminas-diactoros: ^3.5
- mockery/mockery: ^1.6
- pestphp/pest: ^4.0
- phpstan/phpstan: ^1.12
- roave/security-advisories: dev-latest
Suggests
- laravel/serializable-closure: Required if you need to serialise closures independently
Provides
None
Conflicts
None
Replaces
- orno/http: ~1.0
- orno/route: ~1.0
- 7.x-dev
- 7.0.0
- 6.x-dev
- 6.2.0
- 6.1.1
- 6.1.0
- 6.0.0
- 5.x-dev
- 5.1.2
- 5.1.1
- 5.1.0
- 5.0.1
- 5.0.0
- 4.x-dev
- 4.5.4
- 4.5.3
- 4.5.2
- 4.5.1
- 4.5.0
- 4.4.0
- 4.3.1
- 4.3.0
- 4.2.0
- 4.1.1
- 4.1.0
- 4.0.1
- 4.0.0
- 3.x-dev
- 3.1.0
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.x-dev
- 2.0.2
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- dev-feature/http-query-method
This package is auto-updated.
Last update: 2026-08-14 09:04:27 UTC
README
This package is compliant with PSR-4, PSR-7, PSR-11, PSR-15, PSR-16 and PSR-17. If you notice compliance oversights, please send a patch via pull request.
Install
Via Composer
$ composer require league/route
Requirements
The following versions of PHP are supported by this version.
- PHP 8.3
- PHP 8.4
- PHP 8.5
Documentation
Route has full documentation, powered by Jekyll.
Contribute to this documentation in the docs directory.
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.