league / route
Fast routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
Fund package maintenance!
philipobenito
Installs: 1 932 048
Dependents: 133
Suggesters: 1
Security: 0
Stars: 651
Watchers: 29
Forks: 126
Open Issues: 13
Requires
- php: ^7.2 || ^8.0
- nikic/fast-route: ^1.3
- opis/closure: ^3.5.5
- psr/container: ^1.0|^2.0
- psr/http-factory: ^1.0
- psr/http-message: ^1.0.1
- psr/http-server-handler: ^1.0.1
- psr/http-server-middleware: ^1.0.1
- psr/simple-cache: ^1.0
Requires (Dev)
- laminas/laminas-diactoros: ^2.3
- phpstan/phpstan: ^0.12
- phpstan/phpstan-phpunit: ^0.12
- phpunit/phpunit: ^8.5
- roave/security-advisories: dev-master
- scrutinizer/ocular: ^1.8
- squizlabs/php_codesniffer: ^3.5
Replaces
- orno/http: ~1.0
- orno/route: ~1.0
This package is auto-updated.
Last update: 2024-10-28 09:34:14 UTC
README
This package is compliant with PSR-1, PSR-2, PSR-4, PSR-7, PSR-11 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 7.2
- PHP 7.3
- PHP 7.4
- PHP 8.0
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.