Skip to content

Releases: inhere/php-validate

v2.4.7

13 Jan 09:41
Compare
Choose a tag to compare
  • add new filter: unique
  • add new validator: arrList, each, distinct
  • support wildcard value validate: ['users.*.id', 'distinct']
  • some logic modified. some bug fixed
  • rename class name, update readme

v2.4.6

11 Jan 03:23
Compare
Choose a tag to compare
  • update readme
  • bug fixed for phpunit
  • bug fixed for required check
  • add new filter: bool
  • add new validator: accepted
  • errors stracture modify: [['name' => 'filed name', 'msg' => 'error msg']]
  • required: support check array key , object and uploaded file. ['goods.apple', 'required']
  • error message find logic modify

v2.4.5

26 Dec 07:06
Compare
Choose a tag to compare
  • add new filters: clearSpace nl2br str2list
  • add new validators: hasKey contains startWith endWith macAddress
  • add more unit tests
  • some bug fixed, update readme.

v1.3.3

26 Dec 07:08
Compare
Choose a tag to compare

merge master feature to branch php5

  • same as the tag v2.4.5

v2.4.3

14 Dec 08:07
Compare
Choose a tag to compare

bug fixed for json validate.

v2.4.2

07 Dec 02:57
Compare
Choose a tag to compare
  • float int number 验证器增强。 允许直接设置大小范围检查
  • size, string 现在允许只写最大值(会自动补充一个最小值)
  • 添加更多测试方法
  • Update readme

v2.4.0

01 Dec 09:26
Compare
Choose a tag to compare
  • update readme
  • Validators in the class must have a suffix 'Validator'

注意: 写在当前类里的验证器方法必须带有后缀 Validator 以防止对内部的其他的方法造成干扰

v1.3.0

01 Dec 10:02
Compare
Choose a tag to compare
  • merge master update to current branch

v2.3.4

30 Nov 13:25
Compare
Choose a tag to compare
  • bug fixed for string len validate
  • bug fixed: save value to data on filtered
  • add more validators test, add new validator: numList
  • update readme

v1.2.3

30 Nov 13:28
Compare
Choose a tag to compare
  • bug fixed for string len validate
  • bug fixed: save value to data on filtered
  • add more validators test, add new validator: numList
  • update readme