Download the PHP package arlin/hyperf-validate without Composer
On this page you can find all versions of the php package arlin/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
通过注解、切面验证表单
安装方法 composer require arlin/hyperf-validate
注解: @RequestValidation
例如:
/**
* validate 验证规则类,默认取验证器为当前控制器类文件名的验证器文件
* scene 验证场景
* filter true过滤掉规则外无用参数
* @RequestValidation(validate="",scene="index",filter=true)
* @return array
*/
public function index()
{
//获取验证后数据
/** @var IndexControllerValidation $param */
$param = $this->request->getParsedBody();
return [
'username' => $param->username,
'password' => $param->password
];
}
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 arlin/hyperf-validate contains the following files
Loading the files please wait ...