rareloop/router
Rareloop Router is a lightweight, fast PHP router built around PSR-7 and PSR-15. It supports route parameters, groups, middleware, named routes and route caching, making it easy to add clean, expressive routing to any PHP application without a full framework.
Adopt when all of these hold:
Look elsewhere when:
To executives: This is a low-cost, MIT-licensed component that lets us keep Laravel-style developer ergonomics while moving off the Laravel framework where a full framework is overkill. The business case is migration and onboarding cost, not license savings — it reduces retraining during de-frameworking and shrinks the operational and security surface of small services. Risk is contained because the router is a thin, replaceable layer, not a platform bet.
To engineering: PSR-7/PSR-15 native, Laravel-idiomatic syntax, small enough to read end to end, MIT so we can patch or fork. We isolate it behind our own routing abstraction so the exit cost to FastRoute or Symfony Routing is a day, not a quarter.
The honest caveat, stated up front: this is a modest-adoption package with concentrated maintainership. That's acceptable for a swappable infrastructure component and not acceptable for a strategic dependency. Frame the decision that way and it survives scrutiny.
How can I help you explore Laravel packages today?