adamsafr/form-request-bundle
Symfony bundle bringing Laravel-style Form Requests: create custom request classes with validation rules that run before controller actions. Simple install via Composer/Flex, optional JSON error listeners for access denied, validation and JSON decode failures.
Adopt When:
Look Elsewhere If:
Request validation with Symfony’s built-in validators suffices)."This package lets us adopt Laravel’s battle-tested Form Request pattern in Symfony, cutting development time by 30%+ for validation-heavy workflows. By centralizing validation logic, we reduce bugs, improve security, and align our API/admin panels with best practices—without reinventing the wheel. It’s a low-risk, high-reward ‘buy’ that accelerates feature delivery and simplifies onboarding for Laravel-experienced devs."
Key Outcomes:
*"This bundle brings Symfony closer to Laravel’s Form Request workflow, where validation and authorization live in dedicated request classes—executed before controllers. Benefits:
validate() calls; logic lives where it belongs.StoreUserRequest for both API and web).@Can('update', $post)).composer require adamsafr/form-request-bundle).Trade-offs:
Proposal: Pilot this for our next API module or admin panel to validate the productivity gains."*
How can I help you explore Laravel packages today?