cubicmushroom/value-objects-bundle
nicolopignatelli/valueobjects standalone).nicolopignatelli/valueobjects package is abandoned (last commit: 2017). Risk of breaking changes or lack of updates.spatie/laravel-data, symfony/ux-datagrid) be preferable?composer require installation with minimal config.@Column annotations on getters or hybrid approaches).nicolopignatelli/valueobjects (standalone, no Symfony DI).spatie/laravel-data (Laravel-specific).Money, Email) to test integration.@ORM\Column on VO properties or entity-side serialization).ValueObjectTestCase from the underlying package).composer.json and register the bundle in AppKernel.php.nicolopignatelli\valueobjects\AbstractValueObject.use Nicolopignatelli\ValueObjects\AbstractValueObject;
class Email extends AbstractValueObject
{
protected $value;
public function __construct(string $email)
{
$this->value = $email;
}
public function getValue(): string { return $this->value; }
}
nicolopignatelli/valueobjects may lead to breaking changes.nicolopignatelli/valueobjects docs, which are also outdated.nicolopignatelli/valueobjects is updated (unlikely but possible), the bundle may fail.AbstractValueObject).How can I help you explore Laravel packages today?