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. *
Authorjustb3a
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.

Instructions

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

README

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;
$validator->setConfig($conf);
if (!$validator->isValid()) $errors = $validator->getErrors();

Read more!

The Guides

Comments

  • Jim

    Jim 1 year ago 00

    FYI: The links to the guides on this module are not working.

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.