handcraftedinthealps/rest-routing-bundle
Symfony bundle that restores FOSRestBundle-style automatic REST route generation. Supports format options and method/name prefixing, and includes a command to dump/convert type: rest routes into standard Symfony routes for migration or opt-out.
dump-symfony-routes command).GET /users, POST /users) without manual route definitions, reducing boilerplate.json, xml, or other formats via annotations (e.g., @Version, @Prefix), simplifying content negotiation.Adopt When:
dump-symfony-routes) to opt out later.Look Elsewhere When:
#[Route]) from the start—this bundle adds abstraction overhead."This package lets us future-proof our API infrastructure by automating REST route generation—saving 30–50% of backend dev time on route maintenance. It’s a low-risk migration path from FOSRestBundle to Symfony 6/7+, with a built-in tool to transition to native routing later. By standardizing our API endpoints, we reduce technical debt and accelerate feature delivery."
Key Outcomes:
*"The RestRoutingBundle replaces FOSRestBundle’s auto-routing in Symfony 6/7+, using familiar annotations (@RouteResource, @Prefix) to generate RESTful routes automatically. It’s a drop-in replacement for teams using FOSRestBundle 2.x, with:
@Version).fos:rest:routing:dump-symfony-routes command exports all routes to YAML for later opt-out.Why it’s better than rolling our own:
Trade-offs:
Call to Action:
"Let’s pilot this in our /users API module to validate the time savings, then roll it out to other REST endpoints. We can phase out the bundle later if needed."
How can I help you explore Laravel packages today?