Go to file
Alexandre Gomes Gaigalas 8a7f2770c9 README update
2010-09-24 00:38:53 -03:00
library Name refactorings, interface for simple validator calls, date improvements 2010-09-24 00:32:00 -03:00
tests Name refactorings, interface for simple validator calls, date improvements 2010-09-24 00:32:00 -03:00
README.rdoc README update 2010-09-24 00:38:53 -03:00

== About

Respect\Validation aims to be the most awesome validation toolkit ever created

Single validator usage samples:

 <?php
 
 use Respect\Validation\Validator as v;

 //Returns true or false
 v::isDate('2009-12-01', 'between', '2008-01-01', '2010-10-10');

 //Exception sample
 try {
    v::validDate('2009-12-01', 'between', '2008-01-01', '2010-10-10');
 } catch (Date\OutOfBoundsException $e) {
    echo $e->getMessage();
 }

 //Raw constructor sample
 $dateValidator = new Date\Between('2008-01-01', '2010-10-10');
 $dateValidator->isValid('2009-12-01');