hostnet/form-handler-bundle
Symfony bundle that adds reusable form handler services to separate form processing from controllers. Define handlers for validation, persistence, and success/failure flow, keeping controller actions thin and form logic testable.
handleRequest() → isValid() → persist → flash → redirect block that gets copy-pasted into every controller action. That is a classic "boring glue code" buy decision: small surface area, MIT licensed, low switching cost.Adopt when all of the following hold:
Look elsewhere when:
To executives: This is a small, MIT-licensed utility that removes repetitive glue code from form submission handling. It carries no license cost and no strategic lock-in, and it is small enough to fork if the maintainer walks away. It is a developer-productivity line item, not a product capability — the expected return is fewer lines of code per form feature and faster review cycles, best validated with a one-module pilot rather than a company-wide mandate. It also only applies if we are running Symfony; on Laravel it is out of scope and the equivalent decision is made with native framework features.
To engineering: Adopting it means one handler class per form and controllers that stay thin — an explicit convention we would document and enforce. The trade-offs to accept: it is a low-adoption dependency (71 stars, zero dependents, single maintainer), so we treat the source as forkable and pin versions; and it is Symfony-only. Proposal: pilot in one form-heavy module, measure LOC removed and review time saved, then decide on broader rollout or a ~30-line in-house replacement.
How can I help you explore Laravel packages today?