Neuron-PHP

Validation

Table of Contents

Interfaces

ICollection
Validation collection.
IValidator
Core validator interface for the Neuron validation system.

Classes

Base
Validator base class.
Collection
Allows multiple validators to be chained in one item.
IsArray
Requires an array.
IsBase64
Validates base64 encoded data.
IsBoolean
Requires a boolean.
IsCurrency
Requires a number with a maximum of 2 decimal places.
IsDate
Requires a date with a specific format. Defaults to Y-m-d
IsDateRange
Validates a DateRange data object.
IsDateTime
Requires a date with a specific format. Defaults to Y-m-d
IsDateWithinRange
Requires a date within a specified range.
IsEin
Requires a valid ein format of nn-nnnnnnn
IsEmail
Requires a valid email address format.
IsFloatingPoint
Requires a floating point number.
IsInSet
Validates that a value is within a predefined set of allowed values.
IsInteger
Requires an integer
IsIpAddress
Requires a valid IsIpAddress format.
IsJson
Validates json data.
IsName
Requires a valid name.
IsNotEmpty
Requires a non empty variable.
IsNotNull
Requires a non-null variable.
IsNumberWithinRange
Requires a number to be within a specific range.
IsNumeric
Requires an integer or float or a numeric string
IsNumericRange
Requires the Minimum to be less than the maximum.
IsObject
Requires an array.
IsPassword
Password validator with configurable requirements.
IsPhoneNumber
Requires a valid phone number format nnn-nnn-nnnn
IsPositive
Requires a positive number.
IsRegExPattern
Validator base class.
IsString
Requires a string.
IsStringLength
Validator base class.
IsTime
Requires time to be in a specific format. Defaults to g:i:s A
IsUpc
Validates a UPC code.
IsUrl
Requires a valid url format.
IsUuid
Requires a valid UUID format.

Traits

Policy

        
On this page

Search results