cubicmushroom/value-objects-bundle
Money, Email, DateRange), aligning with DDD principles for cleaner domain layers.Email with regex checks) early in the pipeline.Money classes) while maintaining consistency across microservices or modules.ProductPrice, InventoryQuantity).UserEmail, SubscriptionPeriod).CurrencyAmount, TransactionId).Adopt if:
Email, Percentage) but lacks time for custom implementations.Look elsewhere if:
symfony/ux-dnd for modern patterns).moneyphp/money).For Executives:
"This bundle lets us model business data (e.g., prices, emails) as self-validating objects, reducing bugs and making code more maintainable. For example, an Email object will reject invalid formats at creation—no more runtime errors in user registration. It’s a lightweight upgrade for our Symfony apps that aligns with modern DDD practices, saving dev time on boilerplate while improving reliability."
For Engineers:
*"The cubicmushroom/value-objects-bundle wraps nicolopignatelli/valueobjects, giving us immutable, validated objects (e.g., Money, Email) with minimal setup. Key benefits:
ProductSku) by extending base classes.
Tradeoff: Limited to Symfony; for new projects, consider Symfony 6’s native DDD tools."*How can I help you explore Laravel packages today?