https://github.com/thephpleague/route
Fast PSR-7 based routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
https://github.com/thephpleague/route
fastroute php routing
Last synced: 1 day ago
JSON representation
Fast PSR-7 based routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
- Host: GitHub
- URL: https://github.com/thephpleague/route
- Owner: thephpleague
- License: mit
- Created: 2015-01-12T10:21:02.000Z (over 10 years ago)
- Default Branch: 5.x
- Last Pushed: 2024-09-28T09:18:39.000Z (7 months ago)
- Last Synced: 2024-10-29T20:56:12.363Z (6 months ago)
- Topics: fastroute, php, routing
- Language: PHP
- Homepage: http://route.thephpleague.com
- Size: 1.21 MB
- Stars: 651
- Watchers: 29
- Forks: 126
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
- awesome-php - Route - A routing library built on top of Fast Route. (Table of Contents / Routers)
- awesome-projects - Route - A routing library built on top of Fast Route. (PHP / Routers)
- awesome-php - Route - A routing library built on top of Fast Route. (Table of Contents / Routers)
- awesome-php-cn - Route - 路由图书馆建立在快速的路线. (目录 / 路由 Routers)
README
# Route
[](https://twitter.com/philipobenito)
[](https://github.com/thephpleague/route/releases)
[](LICENSE.md)
[](https://travis-ci.org/thephpleague/route)
[](https://scrutinizer-ci.com/g/thephpleague/route/code-structure)
[](https://scrutinizer-ci.com/g/thephpleague/route)
[](https://packagist.org/packages/league/route)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.
[PSR-1]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md
[PSR-2]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[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## Install
Via Composer
``` bash
$ 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](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
``` bash
$ vendor/bin/phpunit
```## Contributing
Please see [CONTRIBUTING](https://github.com/thephpleague/route/blob/master/CONTRIBUTING.md) for details.
## 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
The MIT License (MIT). Please see [License File](https://github.com/thephpleague/route/blob/master/LICENSE.md) for more information.