php-collective/symfony-dto
php-collective/symfony-dto brings typed DTOs to Symfony controllers, letting you map and validate request data into dedicated objects instead of raw arrays. It keeps request handling explicit, type-safe, and easier to maintain, with attribute-driven mapping and validation.
symfony-dto (php-collective) lets teams declare DTOs in a PHP config file (dto.php) and generate typed objects instead of hand-writing transfer objects — directly informing whether to standardize DTOs across services or keep ad-hoc arrays/VOs.dto.php) is a housekeeping change: it reduces config drift between versions but does not introduce features, breaking changes, or deprecations. No roadmap impact; treat as routine maintenance when pinning versions.Consider it when:
dto.php) that is readable and diff-friendly.Look elsewhere when:
For executives: symfony-dto is a small, early-stage open-source utility that generates typed data objects from a PHP config file. It can reduce boilerplate and inconsistency at service boundaries, but it is pre-1.0, single-maintainer-adjacent, and Symfony-oriented — it is a low-cost experiment, not a platform commitment. The latest release (0.1.4) is maintenance only: it standardizes on dto.php as the config format, with no new features or breaking changes. Recommendation: pilot on one non-critical Symfony service, timebox the evaluation, and keep a fallback to plain DTO classes.
For engineering: 0.1.4 aligns PHP config handling on dto.php, which reduces format drift and makes configs easier to review and diff. There are no breaking changes, so an upgrade from 0.1.3 is low-risk — pin the patch version and regenerate/verify generated output in CI. Because the project is 0.x with limited documentation, budget for reading source and owning the generation step; validate static-analysis and autoload behavior before broader rollout.
How can I help you explore Laravel packages today?