zaphyr-org / router
PSR-7 router supporting attribute-based routing, complete with PSR-15 middleware and PSR-11 container support, all built upon the foundation of FastRoute.
Requires
- php: >=8.1
- nikic/fast-route: ^1.3
- psr/container: ^2.0
- psr/http-message: ^2.0
- psr/http-server-handler: ^1.0
- psr/http-server-middleware: ^1.0
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^10.0
- roave/security-advisories: dev-latest
- squizlabs/php_codesniffer: ^4.0
- zaphyr-org/container: ^1.0
- zaphyr-org/http-message: ^1.0
Suggests
- zaphyr-org/container: Powerful auto wiring dependency injection container including PSR-11.
- zaphyr-org/http-emitter: Emits PSR-7 responses to the PHP Server API.
- zaphyr-org/http-message: Lightweight and strict implementation of PSR-7 HTTP Message including PSR-17 HTTP Factories.
README
Router
Robust PSR-7 router supporting attribute-based routing, complete with PSR-15 middleware and PSR-11 container support, all built upon the foundation of FastRoute.
System Requirements
You need PHP => 8.1.0
but the latest stable version of PHP is recommended.
Installation
It's recommended that you use Composer to install the router repository.
composer require zaphyr-org/router
Documentation
You can read the full documentation here.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Issues
Bug reports and feature requests can be submitted on the GitHub Issue Tracker.
Security
If you discover security related issues, please email security@zaphyr.org instead of using the issue tracker!
Contributing
Please see CONTRIBUTING for details.
Code of Conduct
Please see CODE OF CONDUCT for details.
License
This project is licensed under the MIT license. See LICENSE for more information.