Download the PHP package kkgroup/validation without Composer
On this page you can find all versions of the php package kkgroup/validation. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download kkgroup/validation
More information about kkgroup/validation
Files in kkgroup/validation
Download kkgroup/validation
More information about kkgroup/validation
Files in kkgroup/validation
Please rate this library. Is it a good library?
Informations about the package validation
验证器
简介
- 兼容 Hyperf/Laravel Validation 规则
- 部分场景可获得约 500 倍性能提升
- 验证器可多次复用不同数据,无状态设计
- 规则可全局复用
- 智能合并验证规则
安装
环境要求
- PHP >= 8.0
- mbstring 扩展
- ctype 扩展
安装命令
使用
如何在 Hyperf 框架中使用
因为并没有适配所有规则,所以大表单验证中,最好还是按需使用,不要全部替换。
局部替换
只需要在我们的 FormRequest
中添加对应的 validator
方法,即可使用。
全部替换
待办
- 暂不支持转义
.
,*
等关键符 (好做但是暂时还没需求) - 规则没有全部适配
- 多语言支持 (或许该库只应该实现核心部分, 其它的可以在上层做)
All versions of validation with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-mbstring Version *
ext-ctype Version *
ext-mbstring Version *
ext-ctype Version *
The package kkgroup/validation contains the following files
Loading the files please wait ....