retailcrm/auto-mapper-bundle
Symfony bundle integrating RetailCRM AutoMapper to automatically map arrays and objects to typed DTOs. It simplifies request/response hydration with service auto-configuration and support for nested and collection mappings.
Consider it when:
array_map code starts to hurt.Look elsewhere when:
AutoMapperServiceProvider, and adopting it means pulling the underlying retailcrm/auto-mapper library and writing your own container wiring — at which point you are maintaining a fork of the integration layer.composer audit/license policy gates on bus factor, this fails.fromEntity() methods and move on.spatie/laravel-data covers more of the job in one dependency.For executives (30 seconds): "This is a small, MIT-licensed library that removes repetitive code translating our internal data models into the shapes our APIs and partners expect. The capability is real and the license cost is zero, but the community footprint is essentially nil — one star, no downstream users — so we would be the first meaningful adopter. My recommendation is not to standardize on it. Instead, approve a one-to-two day engineering spike to evaluate it as a reference design, and keep our current approach as the fallback. The downside is capped at a couple of days of engineering; the upside is a cleaner integration layer for the CRM/partner work already on the roadmap."
For engineering:
spatie/laravel-data on the Laravel side. Benchmark reflection-based mapping on your heaviest payload before committing.Recommendation: Treat as an evaluate-and-borrow item, not an adopt item. High opportunity score, low adoption evidence — the gap between those two numbers is the entire decision, and it should be closed with a timeboxed spike rather than a standards decision.
How can I help you explore Laravel packages today?