Skip to main content

Install

composer require n2n/valobj

All classes live in the namespace valobj:

NamespaceContents
valobj\stringEmail, Phone, Name, Label, Text, CleanString, …
valobj\string\cryptPasswordHash, EnvEncryptedSecret
valobj\intPositiveInt, NbId, NbIdArray, …
valobj\floatTypicalTwoDigitDecimal
valobj\calendarDateArray

The interfaces (StringValueObject, IntValueObject, FloatValueObject) and the exception IllegalValueException come from n2n/n2n-spec-valobj (namespace n2n\spec\valobj), which is installed automatically.