kabiroman/adaptive-entity-manager-bundle
Adaptive Entity Manager for Laravel offers a flexible, configuration-driven way to define, manage, and adapt Eloquent entities at runtime. Streamline CRUD, dynamic schemas, and relationships with a lightweight bundle built for extensibility and easy integration.
ValueObjectAwareEntityManagerInterface from the base EntityManagerInterface signals a stable, contract-first design. Teams can standardize on the bundle's entity manager as the single persistence surface across services instead of one bespoke implementation per bounded context.Adopt when:
kabiroman/*) — i.e. you have a fork-and-patch contingency, or the blast radius of removal is contained.EntityManagerInterface and calls VO helpers (getValueObjectRegistry(), hasValueObjectSupport()) must switch to ValueObjectAwareEntityManagerInterface or the concrete AdaptiveEntityManager. Budget this before adopting, because it is a recurring pattern, not a one-off.Look elsewhere when:
To executives (one paragraph): We are evaluating a small Laravel package that lets our domain objects own their own validation and value semantics — prices, emails, date ranges — instead of scattering that logic across controllers and services. The latest release (3.1.0) is a maturity signal: it separates the value-object-aware contract from the general entity manager, so teams can depend on the narrower, safer interface, and it tightens field metadata validation, which means fewer silent data-shape bugs. Cost is a small, time-boxed upgrade — a dependency bump plus a targeted audit of typehints where we call value-object helpers. Recommendation: adopt in one pilot service, keep the upgrade in this sprint's tech-debt budget, and treat it as a build-vs-buy saving on custom mapping code rather than as new scope.
To engineering (summary): adaptive-entity-manager-bundle 3.1.0 requires kabiroman/adaptive-entity-manager ^1.6, which brings value-object metadata that no longer depends on ValueObjectInterface, a dedicated ValueObjectAwareEntityManagerInterface, criteria/storage alignment, and stricter field metadata checks. Bundled services still expose the concrete AdaptiveEntityManager. The upgrade action is explicit: run composer update kabiroman/adaptive-entity-manager-bundle, then grep for EntityManagerInterface typehints on any call site using VO helpers and retarget them to ValueObjectAwareEntityManagerInterface or AdaptiveEntityManager. Stricter metadata means some previously-tolerated field definitions will now fail fast — expect a short tail of fixture/config fixes. No deprecations were announced, and the concrete manager satisfies both contracts, so runtime breakage should be limited to interface-level typehints and any metadata that was previously accepted loosely. Land it behind the existing test suite, in its own PR, before the next feature branch cut.
How can I help you explore Laravel packages today?