Releases: Tinywan/webman-validate
Releases · Tinywan/webman-validate
ChangeLog v1.0.2
ChangeLog v1.0.1
What's Changed
- 修复php8下出现的scene未初始化问题 by @liuqingliu in #7
New Contributors
- @liuqingliu made their first contribution in #7
Full Changelog: v1.0.0...v1.0.1
ChangeLog v0.0.6
支持面板使用
$validate = \Tinywan\Validate\Facade\Validate::rule('age', 'number|between:1,120')
->rule([
'name' => 'require|max:25',
'email' => 'email'
]);
$data = [
'name' => 'tinywan',
'email' => 'tinywan@gmail.com'
];
if (!$validate->check($data)) {
var_dump($validate->getError());
}
Full Changelog: v0.0.5...v0.0.6
ChangeLog v0.0.5
Full Changelog: v0.0.4...v0.0.5
- 无须手动添加自定义
validate()
函数到functions.php
ChangeLog v0.0.3
- 增加validate()助手函数(推荐)
ChangeLog v0.0.1
init