gnugat/marshaller-bundle
Symfony bundle that integrates the gnugat/marshaller library, providing service configuration and dependency injection for marshalling and unmarshalling data between PHP objects and arrays or other representations. Useful for cleanly separating transformation logic in Symfony applications.
gnugat/marshaller: it registers the library as a container service and exposes a gnugat_marshaller tag for registering your own marshallers. That is a decision you can make in an afternoon either way, so the real question is not "should we take a dependency" but "do we want a conventional, container-wired seam for DTO hydration, request-to-domain mapping, or export/serialization transforms, or do we hand-roll it in a service provider." Treat adoption as a code-organization choice, not a platform bet.array_map calls in controllers.gnugat/marshaller v1.0, the library's first stable tag. That is a genuine stability signal, but it is a small, single-maintainer ecosystem component. This should feed your dependency-approval checklist and your bus-factor register, not just the feature backlog.Consider it when:
gnugat/marshaller at its v1.0 stable API rather than tracking a pre-1.0 branch — this release is the first point at which that is a defensible position.Look elsewhere when:
gnugat/marshaller directly.For executives (one line): A small, low-risk integration that gives us a standard, testable place to put data-transformation logic — a code-hygiene decision, not a new product capability or a vendor commitment.
For engineering leadership: This release wires gnugat/marshaller v1.0 into Laravel's container — a service definition plus a gnugat_marshaller tag so teams can register and collect multiple marshallers through the container rather than instantiating them by hand. It is additive and non-breaking, and the noteworthy part is the upstream v1.0 pin, which is the first stable API we can depend on with a straight face.
Honest caveats to state up front: This is glue, not a platform. The code is small enough that replacing it later is cheap — which cuts both ways: low lock-in, but also low defensibility if someone asks why we added a dependency for it. The underlying library is small and thinly maintained. Recommend adoption only where we already have a real, recurring transformation need, and keep it contained behind our own interface so a future swap is a one-file change. Approve on the understanding that we are standardizing a pattern, not buying a capability.
How can I help you explore Laravel packages today?