Releases: inhere/php-validate
Releases · inhere/php-validate
v2.4.7
- 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
- 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
- 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
merge master feature to branch php5
v2.4.3
bug fixed for json
validate.
v2.4.2
float
int
number
验证器增强。 允许直接设置大小范围检查
size
, string
现在允许只写最大值(会自动补充一个最小值)
- 添加更多测试方法
- Update readme
v2.4.0
- update readme
- Validators in the class must have a suffix 'Validator'
注意: 写在当前类里的验证器方法必须带有后缀 Validator
以防止对内部的其他的方法造成干扰
v1.3.0
- merge master update to current branch
v2.3.4
- 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
- bug fixed for string len validate
- bug fixed: save value to data on filtered
- add more validators test, add new validator: numList
- update readme