2017 © Pedro Peláez
 

library time-normalize

A basic validator and filter for time input.

image

illchuk/time-normalize

A basic validator and filter for time input.

  • Wednesday, November 1, 2017
  • by dillchuk
  • Repository
  • 1 Watchers
  • 0 Stars
  • 27 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

TimeNormalize

A basic validator and filter for time input., (*1)

Build Status, (*2)

Installation

Install with composer require illchuk/time-normalize., (*3)

You may install in your ZendFramework app by adding to your modules.config.php the following:, (*4)

return [..., 'TimeNormalize' ,...]; // validator and filter both called 'Time'

Or use in a direct fashion:, (*5)

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'

The Versions

01/11 2017

dev-master

9999999-dev https://github.com/dillchuk/TimeNormalize

A basic validator and filter for time input.

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 time zendframework zf3

26/10 2017

v0.1.1

0.1.1.0 https://github.com/dillchuk/TimeNormalize

A basic validator and filter for time input.

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 time zendframework zf3

26/10 2017

v0.1

0.1.0.0 https://github.com/dillchuk/TimeNormalize

A basic validator and filter for time input.

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 time zendframework zf3