Download the PHP package superadminx/think_validate without Composer
On this page you can find all versions of the php package superadminx/think_validate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package think_validate
superadminx_think_validate
基于thinkphp validate全功能版,用于webman框架的validate数据验证器,
- 支持unquire唯一性验证(基于TP Db类)
变化如下
-
任何use的时候 如use think\Validate; 变为use superadminx\think_validate\Validate; 就是将use think变为use superadminx\think_validate
- validate函数变为 think_validate函数 因为安装webman/think-orm的时候,think-orm里面也会安装topthink/think-validate导致validate函数被占用,所以改了函数名
用法完全跟tp验证一致,更多用法可以参考ThinkPHP开发手册的验证章节
安装
composer require superadminx/think_validate
用法
定义验证器
验证器调用代码如下:
更多用法可以参考ThinkPHP开发手册的验证章节
特别说明
感谢 ThinkPHP,webman
All versions of think_validate with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
symfony/translation Version ^6.0
topthink/think-container Version >=3.0
topthink/think-helper Version ^3.1
symfony/translation Version ^6.0
topthink/think-container Version >=3.0
topthink/think-helper Version ^3.1
The package superadminx/think_validate contains the following files
Loading the files please wait ...