Respect\Validation
Overview
Concrete API
Feature Guide
Installation
License
List of rules
Rules
Age
AllOf
Alnum
Alpha
AlwaysInvalid
AlwaysValid
ArrayType
ArrayVal
Attribute
Bank
BankAccount
Between
Bic
BoolType
BoolVal
Bsn
Call
CallableType
Callback
Charset
Cnh
Cnpj
Cntrl
Consonant
Contains
Countable
CountryCode
Cpf
CreditCard
CurrencyCode
Date
Digit
Directory
Domain
Each
Email
EndsWith
Equals
Even
Executable
Exists
Extension
Factor
FalseVal
Fibonacci
File
FilterVar
Finite
FloatType
FloatVal
Graph
HexRgbColor
Identical
IdentityCard
Image
Imei
In
Infinite
Instance
IntType
IntVal
Ip
Iterable
IterableType
Json
Key
KeyNested
KeySet
KeyValue
LanguageCode
LeapDate
LeapYear
Length
Lowercase
MacAddress
Max
Mimetype
Min
MinimumAge
Multiple
Negative
NfeAccessKey
No
NoWhitespace
NoneOf
Not
NotBlank
NotEmpty
NotOptional
NullType
Numeric
ObjectType
Odd
OneOf
Optional
PerfectSquare
Pesel
Phone
PhpLabel
Positive
PostalCode
PrimeNumber
PrimeNumber
Prnt
Punct
Readable
Regex
ResourceType
Roman
ScalarVal
Sf
Size
Slug
Space
StartsWith
StringType
SubdivisionCode
SymbolicLink
Tld
TrueVal
Type
Uploaded
Uppercase
Url
Version
VideoUrl
Vowel
When
Writable
Xdigit
Yes
Zend
Respect\Validation
Docs
»
Rules »
PrimeNumber
PrimeNumber
v::primeNumber()
Validates a prime number
v::primeNumber()->validate(7); // true
See also:
Factor
Fibonacci
Multiple
PerfectSquare