mirkhamidov/yii2-jsonvalidator

Simple JSON validator rule

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Type:yii2-extension

0.1 2017-01-04 20:22 UTC

This package is auto-updated.

Last update: 2024-03-29 02:39:34 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],
        ...,
    ]);
}