mirkhamidov / yii2-jsonvalidator
Simple JSON validator rule
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ^2.0.0
This package is auto-updated.
Last update: 2024-11-29 04:09:38 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
composer require mirkhamidov/yii2-jsonvalidator "@dev"
or add
"mirkhamidov/yii2-jsonvalidator": "*"
to the require section of your composer.json
file.
Usage
/** @inheritdoc */ public function rules() { return ArrayHelper::merge(parent::rules(), [ ..., ['params_data', \mirkhamidov\validators\JsonValidator::class], ..., ]); }