This repository will not be updated. The repository will be kept available in read-only mode.
This module provides a set of useful validation methods.
$conf = array(
'username' => array('isEmpty', 'isUnique' => array('ident' => 'name', 'sanitize' => 'username')),
'pass' => array('range' => array('min' => 6, 'max' => 20))
);
$validator = new Validator;
$validator->setConfig($conf);
if (!$validator->isValid()) $errors = $validator->getErrors();
- [Installation] (doc/installation.md)
- Usage
- Available Validators
- Error Messages
- phpunit Testing