Download the PHP package ibibicloud/thinkphp8-validate without Composer
On this page you can find all versions of the php package ibibicloud/thinkphp8-validate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download ibibicloud/thinkphp8-validate
More information about ibibicloud/thinkphp8-validate
Files in ibibicloud/thinkphp8-validate
Download ibibicloud/thinkphp8-validate
More information about ibibicloud/thinkphp8-validate
Files in ibibicloud/thinkphp8-validate
Vendor ibibicloud
Package thinkphp8-validate
Short Description 基于think-validate=v3.0.5
License Apache-2.0
Package thinkphp8-validate
Short Description 基于think-validate=v3.0.5
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package thinkphp8-validate
thinkphp8-validate
基于 https://github.com/top-think/think-validate/tree/v3.0.5
安装
composer require ibibicloud/thinkphp8-validate
文档
https://doc.thinkphp.cn/v8_0/validate.html https://doc.thinkphp.cn/@think-validate/default.html
用法
use think\facade\Validate;
$validate = Validate::rule([
'name' => 'require|max:25',
'email' => 'email'
]);
$data = [
'name' => 'thinkphp',
'email' => 'thinkphp#qq.com'
];
if ( !$validate->check($data) ) {
var_dump($validate->getError());
}
支持创建验证器进行数据验证
验证器调用代码如下:
$data = [
'name' => 'thinkphp',
'email' => '[email protected]',
];
$validate = new \app\index\validate\User;
if ( !$validate->check($data) ) {
var_dump($validate->getError());
}
All versions of thinkphp8-validate with dependencies
PHP Build Version
Package Version
The package ibibicloud/thinkphp8-validate contains the following files
Loading the files please wait ....