Install
composer require n2n/valobj
All classes live in the namespace valobj:
| Namespace | Contents |
|---|---|
valobj\string | Email, Phone, Name, Label, Text, CleanString, … |
valobj\string\crypt | PasswordHash, EnvEncryptedSecret |
valobj\int | PositiveInt, NbId, NbIdArray, … |
valobj\float | TypicalTwoDigitDecimal |
valobj\calendar | DateArray |
The interfaces (StringValueObject, IntValueObject, FloatValueObject) and the exception IllegalValueException come from n2n/n2n-spec-valobj (namespace n2n\spec\valobj), which is installed automatically.