yokai/doctrine-value-object
yokai/doctrine-value-object brings reusable value objects to Doctrine in Laravel apps, offering embeddable types and integration helpers for cleaner, type-safe domain models with less boilerplate.
Architecture fit
laravel-doctrine) for a DDD-style domain layer. Eloquent-first applications get zero value.Integration feasibility
doctrine/orm + doctrine/dbal, extend a base value object, register a DBAL type or map as an embeddable. No invasive wiring.Technical risk
equals() semantics, hydration of nested/composite VOs, and type conversion failures tend to surface as silent data bugs rather than exceptions.Key questions
Stack fit
Migration path
Email or OrderId).Compatibility
laravel-doctrine metadata drivers and caching; type registration must happen before entity metadata is warmed.Sequencing
Maintenance
Support
Scaling
Failure modes
Ramp-up
Recommendation: Low strategic value, contained technical risk if forked and pinned. Adopt only where Doctrine is already the persistence layer and the team accepts ownership; otherwise implement the equivalent thin base classes directly, which is likely cheaper than carrying an unmaintained dependency.
How can I help you explore Laravel packages today?