InitPHP Router

Framework-agnostic PSR-7 HTTP router for PHP 8.2+ with route groups, middleware, named routes and route caching.

PHP 8.2+ MIT v6.0.0 PSR-7PSR-11

Installation

terminal
$ composer require initphp/router

Requires PHP 8.2+. The package is published on Packagist as initphp/router.

What Router does

Fast, framework-agnostic PSR-7 HTTP router for PHP 8.2+: 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
6.0.0
Released
2026-11-29
Requires
PHP 8.2+ (^8.2)
License
MIT
Implements
PSR-7, PSR-11