Registry / utility / topthink-think-validate

topthink-think-validate

JSON →
library3.0.7phppackagistunverified

think validate

composer require topthink/think-validate
INSTALL
IMPORT
SIG · TOPTHINK-THINK-VAL
T
topthink-think-validate
utilityphpv3.0.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Validate
use think\Validate;

Validate input data against defined rules

use think\Validate; $validate = new Validate(); $validate->rule('name', 'require|max:25'); $data = ['name' => 'John']; if (!$validate->check($data)) { print_r($validate->getError()); }
Debug
Known issues
breakingDesigned for ThinkPHP framework; may not work standalone
fix
Install topthink/framework or use with ThinkPHP
affects: >=3.0.0
Upgrade
Version history
3.0.7latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
topthink-think-validate — pip install topthink-think-validate · libregistry