Download the PHP package gitfei1231/validate without Composer
On this page you can find all versions of the php package gitfei1231/validate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gitfei1231/validate
More information about gitfei1231/validate
Files in gitfei1231/validate
Download gitfei1231/validate
More information about gitfei1231/validate
Files in gitfei1231/validate
Please rate this library. Is it a good library?
Informations about the package validate
Webman Validate 插件
基于ThinkPHP6修改的可用于 webman 的通用validate数据验证器。
安装
基础用法
验证器调用代码如下:
$data = [
'name' => 'Tinywan',
'age' => 24,
'email' => '[email protected]'
];
$validate = new app\index\validate\UserValidate;
if (!$validate->check($data)) {
var_dump($validate->getError());
}
助手函数(推荐)
验证错误会自动抛出异常
使用面板Facade
更多用法可以参考6.0完全开发手册的验证章节
All versions of validate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
ext-mbstring Version *
ext-ctype Version *
ext-mbstring Version *
ext-ctype Version *
The package gitfei1231/validate contains the following files
Loading the files please wait ...