This project is no longer maintained and no further public releases are planned.

No further support will be given.

Feel free to fork the git repository.

General

These checks perform basic validation routines like checking if a field is filled out or if a field value is a valid email address.

Version added

1.0.0

Example code

validators {
  1.class = Validator\DefaultValidator
  1.config {
    fieldConf {
      name.errorCheck.1 = required
      email.errorCheck {
        1 = required
        2 = email
      }
    }
  }
}

required

Checks if a field is filled out

email

Checks if a field contains a valid email.

emailExists

Checks if a MX record exists for the domain of an email address. If the user enters an email address like "user@example.tld", Formhandler checks if a valid MX record exists for the domain &q...

url

Checks if a field contains a valid url.

equals

Checks if a field equals the configured value.

equalsField

Checks if a field value equals another field value

notEqualsField

Checks if a field value does not equal another field value

notDefaultValue

Checks if a field equals a default value set by a PreProcessor.