Download the PHP package nepstor/yii2-datetime-compare-validator without Composer
On this page you can find all versions of the php package nepstor/yii2-datetime-compare-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nepstor/yii2-datetime-compare-validator
More information about nepstor/yii2-datetime-compare-validator
Files in nepstor/yii2-datetime-compare-validator
Download nepstor/yii2-datetime-compare-validator
More information about nepstor/yii2-datetime-compare-validator
Files in nepstor/yii2-datetime-compare-validator
Vendor nepstor
Package yii2-datetime-compare-validator
Short Description Yii2 validator for compare datetime.
License BSD-3-Clause
Homepage https://github.com/nepstor/yii2-datetime-compare-validator
Package yii2-datetime-compare-validator
Short Description Yii2 validator for compare datetime.
License BSD-3-Clause
Homepage https://github.com/nepstor/yii2-datetime-compare-validator
Please rate this library. Is it a good library?
Informations about the package yii2-datetime-compare-validator
yii2-datetime-compare-validator
Validator for yii2 allows you to compare dates.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Using
Properties
This validator compares the specified input datetime with another one and make sure if their relationship is as specified by the operator property.
compareAttribute
: the name of the attribute whose value should be compared with.compareValue
: a constant value that the input value should be compared with. When both of this property andcompareAttribute
are specified, this property will take precedence.operator
: the comparison operator. Defaults to=
. The following operators are supported:=
: check if two values are equal. The comparison is done is non-strict mode.!=
: check if two values are NOT equal. The comparison is done is non-strict mode.>
: check if value being validated is greater than the value being compared with.>=
: check if value being validated is greater than or equal to the value being compared with.<
: check if value being validated is less than the value being compared with.<=
: check if value being validated is less than or equal to the value being compared with.
format
: Date format to parse values with. Defaults to Y-m-d.jsFormat
: Date format to parse values with client side. Defaults to YYYY-MM-DD.
All versions of yii2-datetime-compare-validator with dependencies
PHP Build Version
Package Version
The package nepstor/yii2-datetime-compare-validator contains the following files
Loading the files please wait ....