GUMP Versions Save

A fast, extensible & stand-alone PHP input validation class that allows you to validate any data

v2.0.0

1 year ago

Careful! This release includes breaking changes.

  • 🔥 Deprecated PHP 7.0 !!!
  • 🔥 Deprecated GUMP::xss_clean() static method
  • 🔥 Deprecated valid_twitter validator.
  • ✅ Supports php8.0 and php8.1 (removed all deprecation notices)
  • ✅ Added GitHub workflow actions for CI (replace Travis)
  • 🔧 Fixed: #315, #328

v1.12.2

2 years ago
  • Fix #324

v1.12.1

3 years ago

Fix #317

1.12.0

3 years ago
  • Added Ññ support for alpha_* validators.
  • Updated composer.json requirements (ext-bcmath, ext-intl, ext-iconv).

v1.11.0

4 years ago
  • Added support to validate multidimensional arrays. See docs.

v1.10.0

4 years ago

This release affects you only if you have custom validators or custom language files. Also you must use from now on semicolon ; for contains validator as a valid options separator.

  • Now custom validators and filters should follow this signature:
// before
protected function validate_required($field, array $input, $param = null);

// now (what used to be in $param now is in $param[0])
protected function validate_required($field, array $input, array $params = []);

In case one of your validators had only one parameter, now it will be in: $params[0]. Benefits are that new validators don't have to do extra checks to check whether the rule has one or more than one parameter.

  • Error messages files don't have to include 'validate_' prefix now.

v1.9.0

4 years ago
  • New feature to set custom field-rule specific error messages (check docs).
  • Deprecated custom delimiters in filter() and validate() methods in favour of global configuration (bottom part of docs).

v1.8.1

4 years ago
  • Fix new array rules format (#302).

v1.8.0

4 years ago
  • Added strict mode option for boolean validator.
  • Added boolean filter.

Check docs please!

v1.7.1

4 years ago
  • Improved French translation #286.
  • Improved English translation (between_len, validate_alpha_numeric_dash, validate_alpha_dash). 0dc626c