Validators A set of property validators. Usage class Something { #[Required] #[Pattern("/^[A-Za-z]$/")] public string $name; #[Max(12)] #[Min(2)] public int $age; } $validationAttr->isValid(); API Documentation