Download the PHP package nicdamours/validator without Composer
On this page you can find all versions of the php package nicdamours/validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nicdamours/validator
More information about nicdamours/validator
Files in nicdamours/validator
Download nicdamours/validator
More information about nicdamours/validator
Files in nicdamours/validator
Vendor nicdamours
Package validator
Short Description A simple, input validator that support chained command.
License MIT
Package validator
Short Description A simple, input validator that support chained command.
License MIT
Please rate this library. Is it a good library?
Informations about the package validator
Validator
This is a simple validator library to validate some input.
Installation
You can install it using composer :
composer require nicdamours/validator
Usage
To use the library, simply call the static method make
of the Validator object, then select your input to validate, and use the validate
function at the end.
Ex:
Be default, all parameters are optionals, unless you tell the validation function not to.
Ex :
Currently, we support those validation method.
- password ( 7 to 20 letter, number, special char, must have one uppercase )
- title
- datetime (
YYYY-MM-DD hh:mm:ss
) - date (
YYYY-MM-DD
) - isoDatetime (
YYYY-MM-DDThh:mm:ss+0500
the timezone can be format0500
or05:00
, or any other number) - boolean ( as boolean or string )
- id ( int )
- int
- arrayOfString
- arrayOfInt
- path (
/var/www/html
) - version ( Ex: 1, 1.2, 1.2.3);
- HEX color (
#ffffff
,#fff
) - inArray ( if the element is in an array )
All versions of validator with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1.3
The package nicdamours/validator contains the following files
Loading the files please wait ....