On this page
Caution
The documentation you are viewing is for an older version of this component.
Switch to the latest (v3) version.
Standard Validation Classes
The following validators come with the laminas-validator distribution.
- Barcode
- Between
- Callback
- CreditCard
- CSRF (Cross-site request forgery
- Date
- DateComparison
- RecordExists and NoRecordExists (database)
- Digits
- EmailAddress
- Explode
- File Validation Classes
- GreaterThan
- Hex
- Hostname
- HostWithPublicIPv4Address
- Iban
- Identical
- InArray
- Ip
- IsArray
- Isbn
- IsCountable
- IsInstanceOf
- LessThan
- NotEmpty
- NumberComparison
- Regex
- Sitemap
- Step
- StringLength
- Timezone
- Uri
- Uuid
Additional validators
Several other components offer validators as well:
Deprecated Validators
Ccnum
The Ccnum
validator has been deprecated in favor of the CreditCard
validator. For security reasons you should use CreditCard
instead of Ccnum
.