silpo-tech/mapper-bundle
A Symfony bundle for silpo-tech/mapper that automatically configures object-to-object and array mapping services. Register mappers, define mapping profiles, and convert DTOs, entities, and arrays with minimal boilerplate, keeping domain and transport layers clean and decoupled.
toArray() / transformer classes per endpoint.Consider it when:
Look elsewhere when:
spatie/laravel-data, Symfony Serializer, or JMS Serializer carry real adoption, documentation, and hiring familiarity.For executives: This is a small MIT-licensed utility for standardising how we transform data between our internal models and API responses — a place we currently duplicate logic. Direct cost is near zero and the licence lets us take ownership of the code if needed. The honest caveat is adoption: zero stars, zero dependents, one maintainer. So the ask is not a platform commitment; it is a two-day spike against a real endpoint, with a decision gate. Downside is capped because nothing proprietary is at stake.
For engineering: The proposal is to centralise entity→DTO mapping behind an adapter interface, pin the version, and keep it out of the domain layer entirely. Success criterion: it removes more transformer code than it adds within the spike, and the team can read the whole dependency in an afternoon. Two blockers to check first — the package follows Symfony "Bundle" conventions, so Laravel compatibility needs confirming, and there is no community to fall back on for edge cases. If either check fails or the spike is a wash, we keep our hand-rolled transformers and close the ticket.
How can I help you explore Laravel packages today?