2017 © Pedro PelĂĄez
 

library validator

validation class to take care of repetitive tasks

image

ibandominguez/validator

validation class to take care of repetitive tasks

  • Friday, May 5, 2017
  • by ibandominguez
  • Repository
  • 1 Watchers
  • 3 Stars
  • 20 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 15 Versions
  • 0 % Grown

The README.md

validator

Build Status Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

validator is a helper class for repetitive validation processes., (*2)

Getting Started

Clone or Download this package or install via composer, (*3)

composer require ibandominguez/validator, (*4)

Available Rules by '20/Jun/15'

Title Description
required check if the given input exists and it is not empty
email check if the given input is a valid email
array check if the given input is a valid array
numeric check if the given input is a numeric value
string check if the given input is a string value
date check if the given input is a date value with the format (yyyy-mm-dd)
datetime check if the given input is a datetime value with the format (yyyy-mm-dd hh:ii:ss)
time check if the given input is a time value with the format (hh:ii:ss)

Rules Roadmap

  • min
  • max
  • between
  • date format
  • alpha
  • alpha numeric

Use example

In your application:, (*5)

<?php

require __DIR__.'/vendor/autoload.php';

$inputs = array('name' => '', 'email' => 'johndoe@email.com');
$rules = array('name' => 'required', 'email' => 'required|email');

$v = new IbanDominguez\Validator\Validator($inputs, $rules);

$v->passes(); // => false
$v->getErrors(); // => array('name' => 'name, rule: required');

License

MIT © Ibån Domínguez, (*6)

The Versions

05/05 2017

dev-master

9999999-dev

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

05/05 2017

dev-issue/license-update

dev-issue/license-update

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

06/10 2016

v1.2.1

1.2.1.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

06/10 2016

dev-issue/notices

dev-issue/notices

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

06/10 2016

v1.2.0

1.2.0.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

06/10 2016

v1.1.0

1.1.0.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

06/10 2016

v1.0.1

1.0.1.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

06/10 2016

v1.0.0

1.0.0.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

20/06 2015

v0.3.2

0.3.2.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

20/06 2015

v0.3.1

0.3.1.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

20/06 2015

v0.3.0

0.3.0.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

20/06 2015

v0.2.1

0.2.1.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

13/05 2015

v0.2.0

0.2.0.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

13/05 2015

v0.1.0

0.1.0.0

validation class to take care of repetitive tasks

  Sources   Download

MIT

The Requires

  • php >= 5.2.0

 

The Development Requires

by Avatar ibandominguez

validation validate required

13/05 2015

v0.0.0

0.0.0.0

validation class

  Sources   Download

MIT

The Requires

  • php >= 5.2.0

 

The Development Requires

by Avatar ibandominguez