hoa/dispatcher
Hoa\Dispatcher is a PHP component for routing and dispatching requests to controllers, offering a flexible foundation for MVC-style applications. It integrates with Hoa\Router and supports customizable dispatch rules and controller resolution.
Illuminate\Routing (Router, ControllerDispatcher, middleware pipeline); hoa/dispatcher is a parallel, non-Laravel implementation of the same idea.Consider it only when all of the following hold:
Hoa\Router, Hoa\View, etc.) and need the matching dispatcher for an existing, working application.Look elsewhere when:
Illuminate\Routing — it gives you routing, controller dispatch, middleware, route model binding, DI, and a supported upgrade path. Wiring in an external dispatcher means re-implementing the request lifecycle and losing middleware, auth, and testing ergonomics.To executives: We evaluated hoa/dispatcher and recommend a no-go. It is an unmaintained 2017-era dispatch component with negligible adoption (12 stars, no dependent packages) and no security or version support. Laravel already provides this capability natively and with vendor backing, so adopting it would add maintenance liability and future rewrite risk in exchange for zero product capability. The cost of saying no is effectively zero; the cost of saying yes shows up later, in the most-traveled code path we have.
To engineering: It solves a problem we've already solved — mapping a route to a controller action and invoking it. Laravel's router and controller dispatcher cover this with middleware, DI, and testing built in. Treat hoa/dispatcher as a design reference for dispatch semantics if we build an internal command/plugin dispatcher, but keep it out of the dependency graph; if someone wants to study it, time-box a spike in a scratch branch.
Bottom line: Read it, don't ship it. Decision: no adoption; keep dispatch on Laravel's native primitives.
How can I help you explore Laravel packages today?