dothiv/dothiv-valueobject-bundle
Symfony bundle providing a set of reusable value objects for Dothiv projects, aimed at consistent domain modeling and type-safe primitives. Includes common immutable objects and utilities to share across services and applications.
Money, Email, Percentage), aligning with DDD principles for cleaner domain layers.Uuid, Money, PhoneNumber), accelerating development for projects requiring strict data validation.Money, ProductSku).UserEmail, SubscriptionPlan).Currency, TransactionId).Adopt if:
Email, Uuid) without reinventing the wheel.Look Elsewhere if:
php-ddd or spatie/value-object).For Executives:
"This bundle lets us adopt Domain-Driven Design with minimal engineering overhead by reusing battle-tested value objects (e.g., Money, Email). It reduces technical debt, speeds up development, and aligns with our long-term architecture goals—similar to how we’d use a pre-built UI component library. The MIT license and Symfony integration make it a low-risk, high-reward choice for our [e-commerce/SaaS] roadmap."
For Engineers:
*"The DothivValueObjectBundle gives us:
Uuid, Percentage) with built-in validation, cutting boilerplate.spatie/value-object might be more actively supported if community backing is critical."*For Architects: *"This bundle supports separation of concerns by encapsulating business logic in value objects. For example:
Money objects enforce currency rules at creation.Email objects validate formats before use.
It’s a lightweight way to enforce domain invariants without custom code. Caveat: The bundle’s maturity suggests due diligence is needed for production use."*How can I help you explore Laravel packages today?