Overview

Namespaces

  • None
  • PHP
  • Wei
    • Validator

Classes

  • All
  • AllOf
  • Alnum
  • Alpha
  • BaseValidator
  • Between
  • Blank
  • Callback
  • CharLength
  • Chinese
  • Color
  • Contains
  • CreditCard
  • Date
  • DateTime
  • Decimal
  • Digit
  • Dir
  • DivisibleBy
  • DoubleByte
  • Email
  • EndsWith
  • EqualTo
  • Exists
  • FieldExists
  • File
  • GreaterThan
  • GreaterThanOrEqual
  • IdCardCn
  • IdCardHk
  • IdCardMo
  • IdCardTw
  • IdenticalTo
  • Image
  • In
  • Ip
  • Length
  • LessThan
  • LessThanOrEqual
  • Lowercase
  • Luhn
  • MaxLength
  • MinLength
  • MobileCn
  • NaturalNumber
  • NoneOf
  • Null
  • Number
  • OneOf
  • Password
  • Phone
  • PhoneCn
  • PlateNumberCn
  • PositiveInteger
  • PostcodeCn
  • Present
  • QQ
  • RecordExists
  • Regex
  • Required
  • SomeOf
  • StartsWith
  • Time
  • Tld
  • Type
  • Uppercase
  • Url
  • Uuid
  • Overview
  • Namespace
  • Class
  • Tree

Namespace Wei\Validator

Classes summary
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
Email 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
QQ 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)
Wei Framework API documentation generated by ApiGen