Namespace Wei\Validator
All | Check if all of the element in the input is valid by all specified rules |
AllOf | Check if the input is valid by all of the rules |
Alnum | Check if the input contains letters (a-z) and digits (0-9) |
Alpha | Check if the input contains only letters (a-z) |
BaseValidator | The base class of validator |
Between | Check if the input is between the specified minimum and maximum value |
Blank | Check if the input is blank |
Callback | Check if the input is valid by specified callback |
CharLength | Check if the characters length of input is equals specified length |
Chinese | Check if the input contains only Chinese characters |
Color | Check if the input is valid Hex color |
Contains | Check if the input is contains the specified string or pattern |
CreditCard | Check if the input is valid credit card number |
Date | Check if the input is a valid date |
DateTime | Check if the input is a valid datetime |
Decimal | Check if the input is decimal |
Digit | Check if the input contains only digits (0-9) |
Dir | Check if the input is existing directory |
DivisibleBy | Check if the input could be divisible by specified divisor |
DoubleByte | Check if the input contains only double characters |
Check if the input is valid email address | |
EndsWith | Check if the input is ends with specified string |
EqualTo | Check if the input is equals to (==) the specified value |
Exists | Check if the input is existing file or directory |
FieldExists | Check if the validate fields data is exists |
File | Check if the input is valid file |
GreaterThan | Check if the input is greater than (>=) the specified value |
GreaterThanOrEqual | Check if the input is greater than or equal to (>=) the specified value |
IdCardCn | Check if the input is valid Chinese identity card |
IdCardHk | Check if the input is valid Hong Kong identity card |
IdCardMo | Check if the input is valid Macau identity card |
IdCardTw | Check if the input is valid Taiwan identity card |
IdenticalTo | Check if the input is identical to (===) specified value |
Image | Check if the input is valid image |
In | Check if the input is in specified array |
Ip | Check if the input is valid IP address |
Length | Check if the length (or size) of input is equals specified length or in specified length range |
LessThan | Check if the input is less than (<) the specified value |
LessThanOrEqual | Check if the input is less than or equal to (<=) the specified value |
Lowercase | Check if the input is lowercase |
Luhn | Check if the input is valid by the Luhn algorithm |
MaxLength | Check if the length (or size) of input is lower than specified length |
MinLength | Check if the length (or size) of input is greater than specified length |
MobileCn | Check if the input is valid Chinese mobile number |
NaturalNumber | Check if the input is a natural number (integer that greater than or equals 0) |
NoneOf | Check if the input is NOT valid by all of specified rules |
Null | Check if the input is null |
Number | Check if the input is number |
OneOf | Check if the input is valid by any of the rules |
Password | Check if the input password is secure enough |
Phone | Check if the input is valid phone number, contains only digit, +, - and spaces |
PhoneCn | Check if the input is valid Chinese phone number |
PlateNumberCn | Check if the input is valid Chinese plate number |
PositiveInteger | Check if the input is a positive integer (integer that greater than 0) |
PostcodeCn | Check if the input is valid Chinese postcode |
Present | Check if the input is not empty |
Check if the input is valid QQ number | |
RecordExists | Check if the input is existing table record |
Regex | Check if the input is valid by specified regular expression |
Required | Check if the input is provided |
SomeOf | Check if the input is valid by specified number of the rules |
StartsWith | Check if the input is starts with specified string |
Time | Check if the input is a valid time |
Tld | Check if the input is a valid top-level domain |
Type | Check if the type of input is equals specified type name |
Uppercase | Check if the input is uppercase |
Url | Check if the input is valid URL address |
Uuid | Check if the input is valid UUID(v4) |