hoa/router
Hoa\Router is a standalone PHP routing component for mapping HTTP and CLI requests to handlers. It offers route patterns, variable constraints, HTTP method matching, and flexible callbacks, making it easy to build clean, maintainable routing layers for custom PHP applications.
hoa/router justifies replacing the framework's HTTP router (Symfony Routing under the hood), which already gives you middleware ordering, route model binding, route caching, signed URLs, rate limiting, and versioned-prefix groups out of the box. This package is a reference point for a rejected alternative, not a candidate.Hoa\Compiler grammars rather than regex/path segments). That is worth a look if the roadmap includes a rules-driven dispatcher — CLI command trees, telephony dial plans, IoT/device command routing, feature-flag or tenant-aware message dispatch — where the matching rules are owned by non-engineers and change frequently.nikic/fast-route, league/route, aura/router, and Symfony Routing. That comparison is a half-day of work and improves the RFC.Consider it only when all of the following hold:
{param} placeholder or a regex constraint works, it does not qualify.Look elsewhere when any of the following is true — which covers essentially every Laravel application today:
league/route, nikic/fast-route + a dispatcher, or Slim.To executives — one line: Not a vendor decision and not a cost we should take on; recommend we decline and keep routing inside the framework we already pay for.
To engineering — the technical read:
Route:: as-is; if a comparison is needed for the RFC, nikic/fast-route is the maintained benchmark, not this.How can I help you explore Laravel packages today?