Skip to content

phpolar/validators

Repository files navigation

Phpolar Logo

Validators

A set of property validators.

Version PHP Version Require Total Downloads Weekly Check Source code only changes

Usage

class Something
{
    #[Required]
    #[Pattern("/^[A-Za-z]$/")]
    public string $name;

    #[Max(12)]
    #[Min(2)]
    public int $age;
}


$validationAttr->isValid();

About

A set of property validators

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages