Download the PHP package anshu-krishna/data-validator without Composer
On this page you can find all versions of the php package anshu-krishna/data-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download anshu-krishna/data-validator
More information about anshu-krishna/data-validator
Files in anshu-krishna/data-validator
Download anshu-krishna/data-validator
More information about anshu-krishna/data-validator
Files in anshu-krishna/data-validator
Vendor anshu-krishna
Package data-validator
Short Description A PHP library for simplifying complexly-structured-data validation.
License MIT
Package data-validator
Short Description A PHP library for simplifying complexly-structured-data validation.
License MIT
Please rate this library. Is it a good library?
Informations about the package data-validator
PHP Data-Validator
A PHP library for simplifying complexly-structured-data validation.
Note: Version >=2.0 is incompatible with older versions.
Installation
Features:
-
Supported types:
bool
: Boolean valueemail
: String containing an email addressfloat
: Float valuehex
: String containing a hex valueint
: Int valueipv4
: String containing an IPv4 addressipv6
: String containing an IPv6 addressmac
: String containing a MAC addressmixed
: Any valuenull
: Null valuenumber
: Int or Float valuestring
: String valuetimestamp
: String containing a timestamp.\ eg: '2021-01-31', 'today', 'yesterday', '01-Jan-2021', 'January 1, 2021 05:00:10 AM GMT+05:30', etc.timestamp_utc
: String containing a timestamp (it will be converted to UTC timezone).\ eg: '2021-01-31', 'today', 'yesterday', '01-Jan-2021', 'January 1, 2021 05:00:10 AM GMT+05:30', '2024-06-15T20:12:52+05:30:10', etc.unsigned
: Int >= 0url
: String containing a URLuuid
: String containing a UUIDv4
-
Custom data types can also be added. For example see
./examples
-
Multiple alternative data types can be set for a data item. eg:
'int|float|null'
,'ipv4|ipv6'
, etc. - Supports Ranger/Formatter for validated data
Example:
See ./examples
for more info.
Documentation/Examples is under construction
All versions of data-validator with dependencies
PHP Build Version
Package Version
The package anshu-krishna/data-validator contains the following files
Loading the files please wait ....