marvin255/value-object-bundle
A Symfony bundle for using immutable value objects with Doctrine ORM, offering base classes, type mappings, and integration helpers so domain values can be persisted and hydrated transparently. Helps keep models expressive and avoid primitive obsession.
composer require marvin255/value-object-bundle. Check composer.json first for PHP, framework, and dependency constraints.src/, and tests. Identify the public API: base value-object class/interface, factory methods, equality helpers, and any framework integration points.0.x version mean you should verify Laravel compatibility before designing around it.Email, UserId, or Money as an immutable value object, validate it in the constructor/static factory, and use it at application boundaries instead of passing raw scalars everywhere.infection/infection dependency and fixes a deprecated interface issue. There are no advertised new features or breaking changes, so no migration is expected.Email::fromString($value) or Money::fromCents($amount, $currency).equals() for value comparison, __toString()/toNative() for presentation, and JsonSerializable or Laravel casts for serialization.0.x releases as unstable. Pin the version in composer.json and review changelogs before upgrading, even for patch releases.JsonSerializable, casts, or API resources accordingly.composer show marvin255/value-object-bundle, composer why-not, and composer outdated; clear Laravel caches after provider/config changes; run focused unit tests plus static analysis after upgrades.How can I help you explore Laravel packages today?