Download the PHP package jcaillot/laminas-before-validator without Composer
On this page you can find all versions of the php package jcaillot/laminas-before-validator. 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 laminas-before-validator
jcaillot/laminas-before-validator
Date Before validator for the Laminas framework
Laminas\Validator\GreaterThan supports only the validation of numbers. This simple custom Validator, will let you compare two date strings.
Installation
composer require jcaillot/laminas-before-validator
Usage
The validator needs to know the name of the other date field for comparison. It needs to know the input date format. Here are the three required options:
- second_date_field (default to endDate): The name the second date field.
- date_format (default to Y-m-d H:i:s): the string format for the two dates.
- strict (default to false): will allow two identical dates to validate.
Add Validator as usual in your fieldset:
License
All versions of laminas-before-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ~8.0.0
laminas/laminas-mvc Version ^3.1
laminas/laminas-validator Version ^2.15
laminas/laminas-mvc Version ^3.1
laminas/laminas-validator Version ^2.15
The package jcaillot/laminas-before-validator contains the following files
Loading the files please wait ....