mirror of
https://github.com/Respect/Validation.git
synced 2024-06-04 14:52:17 +02:00
a8cb87217f
The new ranges are now 100% accurate by not including any Unicode point that is not defined into the reference file. For example, in the old ranges there is this interval: [\x{3297}-\x{3299}] That is not accurate because there is no "3298" Unicode point in the specs. It may be used by another character and it will cause the check to fail if the user included that particular character. The new ranges for that previous example are now: \x{3297} \x{3299} And so on... This commit will make the ranges more accurate with maximum tolerance to other charcters and also rename the constant name from "GROUPS" to "RANGES" since they are ranges, not groups.
9.6 KiB
9.6 KiB
List of rules
Types
- ArrayVal
- ArrayType
- BoolVal
- BoolType
- CallableType
- Countable
- DateTime
- FalseVal
- FloatVal
- FloatType
- Instance
- IntVal
- IntType
- IterableType
- NullType
- NumericVal
- ObjectType
- ResourceType
- ScalarVal
- StringType
- StringVal
- TrueVal
- Type
- Xdigit
Generics
Comparing Values
Numeric
- Base
- Between
- BoolType
- Even
- Factor
- Fibonacci
- Finite
- FloatVal
- FloatType
- Infinite
- IntVal
- IntType
- Multiple
- Negative
- NotEmpty
- Number
- NumericVal
- Odd
- PerfectSquare
- Positive
- PrimeNumber
- Roman
- Xdigit
String
- Alnum
- Alpha
- Between
- Charset
- Cntrl
- Consonant
- Contains
- ContainsAny
- Digit
- EndsWith
- Graph
- In
- Length
- Lowercase
- NotEmpty
- NoWhitespace
- PhpLabel
- Printable
- Punct
- Regex
- ResourceType
- Slug
- Space
- StartsWith
- Uppercase
- Version
- Vowel
- Xdigit
Arrays
- ArrayVal
- ArrayType
- Contains
- ContainsAny
- Each
- EndsWith
- In
- Key
- KeyNested
- KeySet
- KeyValue
- Length
- NotEmpty
- StartsWith
- Subset
Objects
Date and Time
Group Validators
Regional
Files
- Directory
- Executable
- Exists
- Extension
- File
- Image
- Mimetype
- Readable
- Size
- SymbolicLink
- Uploaded
- Writable
Banking
Other
- Base64
- Bsn
- Cnh
- Cnpj
- Cpf
- Domain
- HexRgbColor
- Imei
- Ip
- Isbn
- Json
- Luhn
- MacAddress
- NfeAccessKey
- Nif
- NotBlank
- NotEmoji
- NotOptional
- Pesel
- Phone
- Pis
- Sf
- Url
- Uuid
- Vatin
- VideoUrl
- Zend
Yes/No
Alphabetically
- Age
- AllOf
- Alnum
- Alpha
- AlwaysInvalid
- AlwaysValid
- AnyOf
- ArrayType
- ArrayVal
- Attribute
- Base
- Base64
- Between
- BoolType
- BoolVal
- Bsn
- Call
- CallableType
- Callback
- Charset
- Cnh
- Cnpj
- Cntrl
- Consonant
- Contains
- ContainsAny
- Countable
- CountryCode
- Cpf
- CreditCard
- CurrencyCode
- Date
- DateTime
- Digit
- Directory
- Domain
- Each
- EndsWith
- Equals
- Even
- Executable
- Exists
- Extension
- Factor
- FalseVal
- Fibonacci
- File
- FilterVar
- Finite
- FloatType
- FloatVal
- Graph
- GreaterThan
- HexRgbColor
- INSTALL
- Identical
- IdentityCard
- Image
- Imei
- In
- Infinite
- Instance
- IntType
- IntVal
- Ip
- Isbn
- IterableType
- Json
- Key
- KeyNested
- KeySet
- KeyValue
- LanguageCode
- LeapDate
- LeapYear
- Length
- LessThan
- Lowercase
- Luhn
- MacAddress
- Max
- Mimetype
- Min
- MinAge
- Multiple
- Negative
- NfeAccessKey
- Nif
- No
- NoWhitespace
- NoneOf
- Not
- NotBlank
- NotEmoji
- NotEmpty
- NotOptional
- NullType
- Number
- NumericVal
- ObjectType
- Odd
- OneOf
- Optional
- PerfectSquare
- Pesel
- Phone
- PhpLabel
- Pis
- Positive
- PostalCode
- PrimeNumber
- Printable
- Punct
- Readable
- Regex
- ResourceType
- Roman
- ScalarVal
- Sf
- Size
- Slug
- Space
- StartsWith
- StringType
- StringVal
- SubdivisionCode
- Subset
- SymbolicLink
- Time
- Tld
- TrueVal
- Type
- Uploaded
- Uppercase
- Url
- Uuid
- Vatin
- Version
- VideoUrl
- Vowel
- When
- Writable
- Xdigit
- Yes
- Zend