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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
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 字符串
email 邮箱
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 *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package aqqwiwng/php-form-validator contains the following files

Loading the files please wait ....