league / route
Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
Fund package maintenance!
philipobenito
Installs: 2 022 849
Dependents: 136
Suggesters: 1
Security: 0
Stars: 653
Watchers: 30
Forks: 128
Open Issues: 3
Requires
- php: ^8.1
- laravel/serializable-closure: ^2.0.0
- 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)
- laminas/laminas-diactoros: ^3.5
- phpstan/phpstan: ^1.12
- phpstan/phpstan-phpunit: ^1.3
- phpunit/phpunit: ^10.2
- roave/security-advisories: dev-latest
- scrutinizer/ocular: ^1.8
- squizlabs/php_codesniffer: ^3.7
Replaces
- orno/http: ~1.0
- orno/route: ~1.0
This package is auto-updated.
Last update: 2024-12-25 08:17:26 UTC
README
This package is compliant with PSR-1, PSR-2, PSR-4, PSR-7, PSR-11, PSR-12 and PSR-15. 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.1
- PHP 8.2
- PHP 8.3
- PHP 8.4
Documentation
Route has full documentation, powered by Jekyll.
Contribute to this documentation in the docs directory.
Testing
$ vendor/bin/phpunit
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.