Download the PHP package lujihong/easy-validator without Composer
On this page you can find all versions of the php package lujihong/easy-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download lujihong/easy-validator
More information about lujihong/easy-validator
Files in lujihong/easy-validator
Download lujihong/easy-validator
More information about lujihong/easy-validator
Files in lujihong/easy-validator
Please rate this library. Is it a good library?
Informations about the package easy-validator
hyperf 框架注解验证器
基于 Hyperf EasyValidator
优点
- 根据注解自动生成Vo类,自动获取并转换request参数类型
- 支持框架数据验证器,自定义验证规则
注意
php >= 8.0
安装
使用示例
控制器
Vo类
- fieldType,用于生成Vo类的类型限定,所有字段均不设置则不生成Vo类
支持的值为:string | array | bool | int | float | file
验证器
- key 格式:field|字段名称
- rule 验证规则
rule 支持hyperf框架所有验证
内置规则:phone、telephone、identity_card、crontab、class_exist、comma_separated
- 自定义验证规则
只需类名称上加上
CustomValidationRule,并实现对应规则即可
All versions of easy-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
netresearch/jsonmapper Version ^4.0
hyperf/http-server Version ~2.2.0|~3.0.0
hyperf/di Version ~2.2.0|~3.0.0
hyperf/json-rpc Version ~2.2.0|~3.0.0
hyperf/rpc-server Version ~2.2.0|~3.0.0
hyperf/validation Version ~2.2.0|~3.0.0
hyperf/filesystem Version ~2.2.0|~3.0.0
symfony/serializer Version ^5.0
phpdocumentor/reflection-docblock Version ^5.0
jetbrains/phpstorm-attributes Version ^1.0
netresearch/jsonmapper Version ^4.0
hyperf/http-server Version ~2.2.0|~3.0.0
hyperf/di Version ~2.2.0|~3.0.0
hyperf/json-rpc Version ~2.2.0|~3.0.0
hyperf/rpc-server Version ~2.2.0|~3.0.0
hyperf/validation Version ~2.2.0|~3.0.0
hyperf/filesystem Version ~2.2.0|~3.0.0
symfony/serializer Version ^5.0
phpdocumentor/reflection-docblock Version ^5.0
jetbrains/phpstorm-attributes Version ^1.0
The package lujihong/easy-validator contains the following files
Loading the files please wait ...