Skip to content

Releases: vlucas/valitron

v1.4.11

14 Oct 11:57
fadce39
Compare
Choose a tag to compare
  • requireWith(out) now supports dot notation
  • translation fixes in various languages

Thank to all contributors!

v1.4.10

08 Jul 16:22
5ebd5d7
Compare
Choose a tag to compare
  • testing now runs as a github workflow
  • now also tested against PHP 8.0
  • improved handling of indexed/associative arrays

v1.4.9

01 Dec 11:26
81515dc
Compare
Choose a tag to compare

Allow disabling of auto prepending the field labels

v1.4.8

15 Oct 14:11
9268ade
Compare
Choose a tag to compare

Add support for SL language

v1.4.7

29 Aug 19:51
a03072b
Compare
Choose a tag to compare

New rules requiredWith and requiredWithout for conditional requirements

v1.4.6

23 Aug 08:41
76e4418
Compare
Choose a tag to compare

new rule listContains - Performs in_array check on given array values

v1.4.5

21 Mar 20:16
c3b4dac
Compare
Choose a tag to compare

New rule arrayHasKeys

v1.4.4

14 Dec 21:22
c6893fc
Compare
Choose a tag to compare

Fixed a bug[#262] where array elements where considered required when any rule was applied to them
New rules for dealing with arrays: subset and containsUnique
Languages: new string in Lithuanian, Norwegian Bokmål added
Additional documentation and comments

v1.4.3

06 May 10:53
3c54633
Compare
Choose a tag to compare

New languages: Lithuanian, Swedish, Korean
New option to stop validating when the first error is encountered
Support for nested arrays for 'equals' and 'different' rules
Enhanced tests

Bugfix

31 Oct 09:09
87775d7
Compare
Choose a tag to compare

The validateRequired method required $fields to be an array, and this broke compatibility with objects that implement PHP's ArrayAccess interface.

Please note that while ArrayAccess-objects will probably work most of the time, Valitron is meant to be used with actual arrays.