hautelook/templated-uri-router
A router that matches and generates URLs using RFC 6570 URI templates, so routes can be defined with named placeholders instead of fixed segments. Extends zend-http routing to assemble spec-compliant URLs flexibly.
"search": "/orders{?status,page,limit}" instead of hard-coding one link per filter combination. This is a product/API-design decision about discoverability, not just a routing detail.{?expand}) without a v2, which is usually cheaper than a version bump.Consider it when:
Look elsewhere — or plan to build — when:
guzzlehttp/uri-template or rize/uri-template directly and write a thin adapter over Route::getRoutes(). That is a day of work and gives you a dependency you can reason about.hautelook/templated-uri-router) and the repository (goetas/TemplatedUriRouter) do not match — this is a fork. Confirm which artifact you would actually install, who publishes it, and whether the fork or the original is the maintained one. Two similar low-activity repos is a fork-drift risk.route() output is fine.To executives (one paragraph): There is a spec — RFC 6570 — for describing URLs with fill-in-the-blank placeholders, and it is how modern hypermedia APIs tell clients what they can ask for without a page of docs per endpoint. This package implements that for Symfony. It is a capability, not a platform: tiny user base, no releases since early 2023, no downstream dependents. The recommendation is to treat it as a design reference and either adopt it only if we are on Symfony, or spend roughly one engineer-day building the equivalent adapter on top of a maintained URI-template library. Either way the strategic value is the same — fewer hand-maintained endpoint variants and a machine-readable contract for generated clients — and the cost of the "build" path is low enough that maintenance risk should not be the deciding factor.
To engineering (bullets):
How can I help you explore Laravel packages today?