Download the PHP package mzh/hyperf-validate without Composer
On this page you can find all versions of the php package mzh/hyperf-validate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package hyperf-validate
hyperf-validate
支持request 和方法场景验证,兼容tp写法 性能比laravel验证器提高50%
安装方法
安装方法 composer require mzh/hyperf-validate
具体使用方法可以参考项目 https://github.com/lphkxd/hyperf-admin
注解
@Validation
@RequestValidation
@RequestValidation 参数说明
-
图1
- 图2
@Validation 参数说明
验证控制器数据方法如下
例如 验证控制器Admin 的login方法传的数据,需要如下操作
验证类方法数据方法如下
例如 验证AdminService类的login方法传的数据,需要如下操作
多维数组验证
-
图3 使用注解方式
-
图4 写验证器规则和场景
- 图5 测试结果
All versions of hyperf-validate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
ext-swoole Version >=4.4
hyperf/http-message Version ~2.0.0
hyperf/config Version ~2.0.0
hyperf/di Version ~2.0.1
hyperf/framework Version ~2.0.0
hyperf/utils Version ~2.0.0
ext-json Version *
ext-swoole Version >=4.4
hyperf/http-message Version ~2.0.0
hyperf/config Version ~2.0.0
hyperf/di Version ~2.0.1
hyperf/framework Version ~2.0.0
hyperf/utils Version ~2.0.0
ext-json Version *
The package mzh/hyperf-validate contains the following files
Loading the files please wait ....