Download the PHP package eternalphp/validate without Composer
On this page you can find all versions of the php package eternalphp/validate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download eternalphp/validate
More information about eternalphp/validate
Files in eternalphp/validate
Download eternalphp/validate
More information about eternalphp/validate
Files in eternalphp/validate
Vendor eternalphp
Package validate
Short Description eternalphp/Validate
License MIT
Package validate
Short Description eternalphp/Validate
License MIT
Keywords validate
Please rate this library. Is it a good library?
Informations about the package validate
$_POST["title"] = "标题标题标题标题标题";
$_POST["content"] = "内容内容";
$validate = new Validate();
$validate->make(function($rule){
$rule->field("title");
$rule->rule("required")->message("标题不能为空");
$rule->rule("chinese")->message("标题必须包含中文");
$rule->rule("maxlength")->value(10)->message("标题长度不能少于10");
});
$validate->make(function($rule){
$rule->field("email");
$rule->rule("required")->message("邮件地址不能为空");
$rule->rule("email")->message("邮件地址不正确");
});
$result = $validate->validate($_POST,function($errors){
print_r($errors);
});
All versions of validate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
The package eternalphp/validate contains the following files
Loading the files please wait ....