GitHub - patrikengborg/processwire-validator: Provides a set of useful validation methods

Skip to content

Navigation Menu

Sign in

Appearance settings

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

Languages

  • PHP 95.0%
  • HTML 5.0%