PHPackages                             ibandominguez/validator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ibandominguez/validator

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ibandominguez/validator
=======================

validation class to take care of repetitive tasks

v1.2.1(9y ago)3511MITPHPPHP &gt;= 5.3.0

Since May 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ibandominguez/validator)[ Packagist](https://packagist.org/packages/ibandominguez/validator)[ RSS](/packages/ibandominguez-validator/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (13)Used By (1)

validator
=========

[](#validator)

[![Build Status](https://camo.githubusercontent.com/fcc571b664947fbd13d34c93ba23d4100f5dab5e00831f674dd2e0f06fd2e93f/68747470733a2f2f7472617669732d63692e6f72672f6962616e646f6d696e6775657a2f76616c696461746f722e7376673f6272616e63683d747261766973)](https://travis-ci.org/ibandominguez/validator)[![Latest Stable Version](https://camo.githubusercontent.com/bac17c18a982e2b360515843cb4a5022026fe355a84e808914cceaf8276d53ae/68747470733a2f2f706f7365722e707567782e6f72672f6962616e646f6d696e6775657a2f76616c696461746f722f762f737461626c65)](https://packagist.org/packages/ibandominguez/validator) [![Total Downloads](https://camo.githubusercontent.com/e2bbdc215c93cb3e2fb0ed934796ee7611c05d5d3c880ba94da501ede67b606d/68747470733a2f2f706f7365722e707567782e6f72672f6962616e646f6d696e6775657a2f76616c696461746f722f646f776e6c6f616473)](https://packagist.org/packages/ibandominguez/validator) [![Latest Unstable Version](https://camo.githubusercontent.com/d335c98b342d7f03519fd3ff3f451b954f2883498ba104311eb2e74bf73553ec/68747470733a2f2f706f7365722e707567782e6f72672f6962616e646f6d696e6775657a2f76616c696461746f722f762f756e737461626c65)](https://packagist.org/packages/ibandominguez/validator) [![License](https://camo.githubusercontent.com/e8a94e5822f8852e4172860cfbea4e6e8b79d327d1f3593260aa2596cc2ec8b3/68747470733a2f2f706f7365722e707567782e6f72672f6962616e646f6d696e6775657a2f76616c696461746f722f6c6963656e7365)](https://packagist.org/packages/ibandominguez/validator)

> validator is a helper class for repetitive validation processes.

Getting Started
---------------

[](#getting-started)

Clone or Download this package or install via composer

> composer require ibandominguez/validator

Available Rules by '20/Jun/15'
------------------------------

[](#available-rules-by-20jun15)

TitleDescriptionrequiredcheck if the given input exists and it is not emptyemailcheck if the given input is a valid emailarraycheck if the given input is a valid arraynumericcheck if the given input is a numeric valuestringcheck if the given input is a string valuedatecheck if the given input is a date value with the format (yyyy-mm-dd)datetimecheck if the given input is a datetime value with the format (yyyy-mm-dd hh:ii:ss)timecheck if the given input is a time value with the format (hh:ii:ss)Rules Roadmap
-------------

[](#rules-roadmap)

- min
- max
- between
- date format
- alpha
- alpha numeric

Use example
-----------

[](#use-example)

In your application:

```
