nelexa/request-dto-bundle
Symfony bundle for mapping HTTP request data into typed DTOs with attribute-based configuration, validation, and automatic hydration. Reduce controller boilerplate by turning query, body, and route parameters into clean, testable request objects, with support for nested DTOs and Symfony Validator.
FormRequest and that spatie/laravel-data extends with casting and transformation.Only as a reference implementation, and only if you are on Symfony. The package is a Symfony Bundle for controller action request-object support; it is not usable in a Laravel application without a port. Even on Symfony, adoption criteria should include:
FormRequest for validation-shaped input, or spatie/laravel-data / a small internal DTO + Validator pipeline when you need casting, transformation, and OpenAPI generation); you need active maintenance, security response, or a support contract; or you are greenfield and cannot justify carrying a dormant third-party package.Verdict: do not adopt as a dependency. Mine it for design ideas, and satisfy the need natively.
For executives: The pattern — turning raw HTTP input into validated, typed objects before it reaches business logic — is worth adopting because it cuts a whole class of runtime bugs and makes every new endpoint cheaper and safer to ship. The specific package is not the vehicle: it is a Symfony-only library with 9 stars, zero dependents, one maintainer, and no release since December 2021. That is unacceptable supply-chain risk for production, and it does not run on our stack. Recommendation: adopt the pattern, build or buy a maintained equivalent, spend days not months.
For engineering leadership: We would be reverse-engineering a ~200-line capability that our framework already provides in primitive form. The defensible options are (a) framework-native request validation plus a thin internal DTO layer we own and test, or (b) a maintained ecosystem package with active releases and a real user base. Either way we get typed input, centralized validation, generated API contracts, and controller testability — with an owner and a patching path.
For the team: Treat nelexa/request-dto-bundle as documentation of a good idea, not code to install. If someone proposes it in a PR, the answer is no on framework compatibility and no on maintenance; propose the internal equivalent instead.
How can I help you explore Laravel packages today?