jinya / router
A simple attribute-based routing library
Installs: 1 300
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.2
- ext-fileinfo: *
- jetbrains/phpstorm-attributes: ^1.0
- laminas/laminas-diactoros: ^3.0.0
- laminas/laminas-httphandlerrunner: ^2.7.0
- laminas/laminas-stratigility: ^3.10.0
- nikic/fast-route: ^v1.3.0
- nyholm/psr7: ^1.8.0
- nyholm/psr7-server: ^1.0.2
- psr/http-server-middleware: ^1.0.2
Requires (Dev)
- ext-xdebug: *
- laravel/pint: v1.15.0
- roave/security-advisories: dev-latest
README
Introduction
About
Jinya Router is a small and capable router and request handler for PHP. It works by analyzing a directory for the
provided attributes and generates a static routing table. This routing table is based on the
excellent nikic/fast-route
package. The handling of the request itself is based on the battle tested Laminas project,
but is not limited to this. You can just create the routing table and then perform the routing by yourself.
Highlights
- Based on the super fast
nikic/fast-route
and battle tested Laminas project - Supports PSR-15 middlewares
- Routing table generation can be changed
- Custom route support
- Bring your own request handler or use the integrated one
- PHP 8.1 and PHP 8.2 compatible
Questions?
We have answers, just open an issue on Github and we will check it out.