nette/routing
Nette Routing is a standalone two-way router for PHP that maps SEO-friendly URLs to presenter/action pairs and back. It supports route masks, parameters, localization, and is used by the Nette Framework.
constructUrl().Executives: “This is not a replacement for Laravel’s routing. It is a small, maintained PHP routing library that can reduce custom code in ancillary services and legacy integrations. The business case is narrow: lower maintenance in non-Laravel components and safer migrations, not faster delivery of core Laravel features. Approve only if we have a concrete standalone service or legacy Nette surface; otherwise, standardize on Laravel’s native router.”
Engineering: “nette/routing provides clean two-way URL conversion (match() / constructUrl()) with path/domain scoping, constraints, defaults, and RFC-compliant encoding. It is framework-agnostic and static-analysis-clean. In Laravel, it is redundant and integration is awkward because Laravel’s router is tied to the HTTP kernel and middleware. Use it only for isolated services, CLI URL generation, or hybrid/legacy bridging; keep Laravel routing native for web and API features.”
How can I help you explore Laravel packages today?