InitPHP Router
Framework-agnostic PSR-7 HTTP router for PHP 8.1+ with route groups, middleware, named routes and route caching.
Installation
terminal
$ composer require initphp/router
Requires PHP 8.1+. The package is published on
Packagist as
initphp/router.
What Router does
Fast, framework-agnostic PSR-7 HTTP router for PHP 8.1+: route groups (prefix, domain, port, IP), middleware, dependency injection, named routes and URL generation, static file links and route caching.
Package details
- Composer package
- initphp/router
- Latest version
- 2.1.0
- Released
- 2026-06-20
- Requires
- PHP 8.1+ (>=8.1)
- License
- MIT
- Implements
- PSR-7, PSR-11