About Validator

This module provides a set of useful validation methods using ProcessWire sanitizers.

Category Development Tools
Modules that have more to do with assisting development of a site rather than managing its content.
Release StateStable
Should be safe for use in production environments. *
Module Version0.0.3
Class NameValidator
Compatibility2.5, 2.6, 2.7
Date AddedMay 4, 2015
Last UpdatedJuly 24, 2015
Recommended ByNew recommendations may take up to 1 day to appear.


This module's files should be placed in /site/modules/Validator/
How to install or uninstall modules


WARNING: This repository is no longer maintained ⚠️

This repository will not be updated. The repository will be kept available in read-only mode.

Validation for ProcessWire

This module provides a set of useful validation methods.

Example Usage

$conf = array(
  'username' => array('isEmpty', 'isUnique' => array('ident' => 'name', 'sanitize' => 'username')),
  'pass' => array('range' => array('min' => 6, 'max' => 20))

$validator = new Validator;
if (!$validator->isValid()) $errors = $validator->getErrors();

Read more!

The Guides