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.

Numbers

If you want to perform error checks on numbers, e.g. if a field value is a valid integer, these checks are right for you.

Version added

1.0.0

Example code

validators {
  1.class = Validator\DefaultValidator
  1.config {
    fieldConf {
      age.errorCheck {
        1 = integer
        2 = betweenValue
        2 {
          minValue = 17
          maxValue = 101
        }
      }
    }
  }
}

integer

Checks if a field contains a valid integer value

float

Checks if a field contains a valid float value

minValue

Checks if the value of a field is at least the configured value

maxValue

Checks if the value of a field is less than the configured value

betweenValue

Checks if the value of a field is between the configured values