This package contains typical validators to be used in your application.
A validator is a class that decides whether a string is valid or not and implements the
ValidatorInterface is part of this package.
For instance, you could use an
EmailValidator to validate that a string is a mail, etc...
List of embedded validators
RequiredValidator: validates a value is not empty
NumericValidator: validates a value is a number (optionnally an integer)
EmailValidator: validates an email address
URLValidator: validates a URL (starting with http://, https:// or ftp://)
MaxMinRangeValidator: validates a value is between 2 bounds
MaxMinRangeLengthValidator: validates a string length is between 2 bounds
SiretValidator: validates a value is a valid SIRET number (French company id)
If the validator implements the
The validators in the packet rely in Fine for translating validation error messages.
Found a typo? Something is wrong in this documentation? Just fork and edit it!