PHP code example of mirkhamidov / yii2-jsonvalidator
1. Go to this page and download the library: Download mirkhamidov/yii2-jsonvalidator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mirkhamidov / yii2-jsonvalidator example snippets
/** @inheritdoc */
public function rules()
{
return ArrayHelper::merge(parent::rules(), [
...,
['params_data', \mirkhamidov\validators\JsonValidator::class],
...,
]);
}