1. Go to this page and download the library: Download nuffic/yii2-docblock-form 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/ */
nuffic / yii2-docblock-form example snippets
class Person
{
/**
* @input
* @validator {"class": "\\yii\\validators\\RequiredValidator"}
* @validator {"class": "\\yii\\validators\\StringValidator", "min": 3, "max": 30}
*/
public $name;
/**
* @input widget["kartik\\switchinput\\SwitchInput", {"template": "default"}]
* @input {"class": \\yii\\validators\\BooleanValidator", "skipOnEmpty": false}
*/
public $age;
}