Download the PHP package gerpayt/yii2-datetime-compare without Composer
On this page you can find all versions of the php package gerpayt/yii2-datetime-compare. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-datetime-compare
yii2-datetime-compare
DateTime comparison validator for Yii Framework 2.0. Temporary solution until this enhancement is implemented.
[[EAnushan\validators\DateTimeCompareValidator|compare]]
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. When the validator is being used to validate an attribute, the default value of this property would be the name of the attribute suffixed with_repeat
. For example, if the attribute being validated isbirthday
, then this property will default tobirthday_repeat
.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==
, meaning checking if the input value is equal to that ofcompareAttribute
orcompareValue
. The following operators are supported:==
: check if two values are equal. The comparison is done is non-strict mode.===
: check if two values are equal. The comparison is done is strict mode.!=
: check if two values are NOT equal. The comparison is done is non-strict mode.!==
: check if two values are NOT equal. The comparison is done is 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.
Installation
The preferred way to install this extension is through composer.
Note: Check the composer.json for this extension's requirements and dependencies.
Either run
or add
to the section of your composer.json
file.
All versions of yii2-datetime-compare with dependencies
PHP Build Version
Package Version
No informations.
The package gerpayt/yii2-datetime-compare contains the following files
Loading the files please wait ....