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
Replaces
- orno/http: ~1.0
- orno/route: ~1.0
This package is auto-updated.
Last update: 2026-07-14 08:52:05 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.