it-bens/object-transformer-bundle
Symfony bundle integrating it-bens/object-transformer, letting you map and transform objects through configurable transformers. Define transformations as services and reuse them across your app to keep DTO mapping, conversions, and data shaping clean and decoupled.
Consider adoption when:
Look elsewhere when:
spatie/laravel-data, Symfony Serializer, or API Platform instead.Executive summary: This is a small, low-footprint utility that can reduce hand-written object-mapping code and make API/domain boundaries easier to test. Because v0.2.0 is pre-1.0, recommend a contained pilot, not a platform-wide mandate. Pin the exact version, wrap it behind an internal adapter, and revisit after a stable 1.0 release or successful pilot results. There is no significant vendor lock-in.
Engineering summary: The package provides explicit transformer classes for object-to-object mapping, including nested and collection scenarios, without imposing a framework dependency. It is easy to unit test and keeps mapping logic out of controllers and domain objects. Adopt it behind an internal mapping interface, pin v0.2.0, review the 0.x changelog before every upgrade, and benchmark before using it in high-volume paths.
How can I help you explore Laravel packages today?