Download the PHP package aqqwiwng/php-form-validator without Composer
On this page you can find all versions of the php package aqqwiwng/php-form-validator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download aqqwiwng/php-form-validator
More information about aqqwiwng/php-form-validator
Files in aqqwiwng/php-form-validator
Download aqqwiwng/php-form-validator
More information about aqqwiwng/php-form-validator
Files in aqqwiwng/php-form-validator
Vendor aqqwiwng
Package php-form-validator
Short Description PHP表单验证器
License Apache-2.0
Homepage https://github.com/aqqwiwng/php-form-validator
Package php-form-validator
Short Description PHP表单验证器
License Apache-2.0
Homepage https://github.com/aqqwiwng/php-form-validator
Please rate this library. Is it a good library?
Informations about the package php-form-validator
php-form-validator
PHP表单验证器
校验规则说明
属性名 | 类型 | 说明 |
---|---|---|
rules | Array | 校验规则 |
label | string | 校验规则对应的字段名称 |
rules 属性说明
属性名 | 类型 | 默认值 | 可选值 | 说明 |
---|---|---|---|---|
required | Boolean | - | - | 是否必填 |
format | String | - | - | 内置校验规则,如这些规则无法满足需求,可以使用正则匹配或者自定义规则 |
regex | String | - | - | 正则表达式字符串:'/^\S+?@\S+?\.\S+?$/' 或 '^\S+?@\S+?\.\S+?$' |
range | Array | - | - | 数组至少要有一个元素,且数组内的每一个元素都是唯一的。 |
maximum | Number | - | - | 校验最大值(大于) |
minimum | Number | - | - | 校验最小值(小于) |
min_length | Number | - | - | 校验数据最小长度 |
max_length | Number | - | - | 校验数据最大长度 |
confirm | String | - | - | 验证字段值是否与指定字段值相同 |
validateFunction | Function | - | - | 自定义校验规则 |
message | String | - | - | 自定义错误提示信息,如果不配置,将会使用内置的错误提示信息 |
format 属性值说明
属性名 | 说明 |
---|---|
int | 整数 |
bool | 布尔值 |
float | 浮点数 |
number | 数字 |
string | 字符串 |
邮箱 | |
url | 网址 |
mobile | 手机号 |
id_card | 身份证号 |
array | 数组 |
object | 对象 |
date | 日期 |
timestamp | 时间戳 |
password | 密码 |
weak_password | 弱密码 |
strong_password | 强密码 |
chinese | 中文 |
All versions of php-form-validator with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0.0
ext-json Version *
ext-json Version *
The package aqqwiwng/php-form-validator contains the following files
Loading the files please wait ....