Download the PHP package illchuk/time-normalize without Composer
On this page you can find all versions of the php package illchuk/time-normalize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download illchuk/time-normalize
More information about illchuk/time-normalize
Files in illchuk/time-normalize
Download illchuk/time-normalize
More information about illchuk/time-normalize
Files in illchuk/time-normalize
Vendor illchuk
Package time-normalize
Short Description A basic validator and filter for time input.
License MIT
Homepage https://github.com/dillchuk/TimeNormalize
Package time-normalize
Short Description A basic validator and filter for time input.
License MIT
Homepage https://github.com/dillchuk/TimeNormalize
Please rate this library. Is it a good library?
Informations about the package time-normalize
TimeNormalize
A basic validator and filter for time input.
Installation
Install with composer require illchuk/time-normalize.
You may install in your ZendFramework app by adding to your modules.config.php the following:
return [..., 'TimeNormalize' ,...]; // validator and filter both called 'Time'
Or use in a direct fashion:
use TimeNormalize\Validator\Time as TimeValidator;
use TimeNormalize\Filter\Time as TimeFilter;
$validator = new TimeValidator;
echo $validator->isValid('12:34am'); // true
echo $validator->isValid('12:34jm'); // false
$filter = new TimeFilter;
echo $filter->filter('12:34 am'); // '00:34'
echo $filter->filter('12:34 pm'); // '12:34'
echo $filter->filter('junk'); // 'junk'All versions of time-normalize with dependencies
PHP Build Version
Package Version
Requires
php Version
^5.5|^7.0
zendframework/zend-validator Version ^2.0
zendframework/zend-inputfilter Version ^2.0
zendframework/zend-validator Version ^2.0
zendframework/zend-inputfilter Version ^2.0
The package illchuk/time-normalize contains the following files
Loading the files please wait ...