Releases: Wixel/GUMP
Releases · Wixel/GUMP
Release 2.1.0
New release! v2.0.0 (support for php8 included)
Maintenance release
Maintenance Release
Maintenance Release
- Added Ññ support for alpha_* validators.
- Updated composer.json requirements (ext-bcmath, ext-intl, ext-iconv).
Features release
- Added support to validate multidimensional arrays. See docs.
Release with breaking changes!
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.
Features release
- 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).
Maintenance Release
- Fix new array rules format (#302).