Download the PHP package itwmw/engine-validate-attributes without Composer
On this page you can find all versions of the php package itwmw/engine-validate-attributes. 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 engine-validate-attributes
微擎表单验证器注解支持
使用注解的方式来指定对应的验证器,场景或验证的字段
安装
使用
Validator有三个参数分别是:
$validate
验证器的完整命名空间$scene
场景名称,如果提供了此值,则$fields
参数无效$fields
要验证的字段,数组类型
中间件使用
如果你使用了验证器提供的中间件,则可以将本扩展注册到中间件配置中:
接下来中间件将自动获取注解指定的验证器来完成验证
独立使用
可以通过以下方式来获取到指定的验证器
getValidate
方法需要两个参数
$controller
控制器名或者类名$scene
方法名或者场景名,非必填
All versions of engine-validate-attributes with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
itwmw/validate Version ^5.1
itwmw/engine-validate-middleware Version ^5.1
itwmw/validate Version ^5.1
itwmw/engine-validate-middleware Version ^5.1
The package itwmw/engine-validate-attributes contains the following files
Loading the files please wait ....