phpmentors/route-templating-bundle
A Symfony bundle for route templating: treat named routes as reusable URI templates, expand them with parameters to build URLs, and keep link generation consistent across templates and services without hardcoding paths.
This is a very small, low-visibility bundle (0 stars, last release 2018-10-02), so treat the source as the documentation. Plan accordingly.
composer require phpmentors/route-templating-bundle. Confirm the resolved Symfony version before you commit — see Gotchas.PHPMentors\RouteTemplatingBundle\PHPMentorsRouteTemplatingBundle (verify the exact FQCN in the repo's root namespace) to app/AppKernel.php (Symfony ≤3.4) or config/bundles.php (Symfony 4+). The bundle predates Symfony 4 conventions, so expect the older layout.DependencyInjection/ — the extension class tells you which services/config keys exist and their defaults.Resources/config/services.xml (or .yml) — the actual service IDs you can inject or decorate.tests/ — the fastest source of truth for real usage; if tests are thin, the classes under Route/ (or the bundle's namespace) are your only reference.Because the package is obscure, keep integration shallow and isolate it behind your own adapter.
RouteTemplateLocator or similar). Your controllers and templates depend on your interface, not the bundle's classes. This makes the dependency removable and keeps the bundle's idiosyncratic API out of your domain code.RouterInterface, don't replace it.composer.json require constraints before installing into a modern app; expect to pin Symfony or vendor/override the bundle.RouteCollection/Route construction later is a contained refactor. Design for that exit from day one.How can I help you explore Laravel packages today?