PHP code example of dynamikaweb / yii2-br-validators
1. Go to this page and download the library: Download dynamikaweb/yii2-br-validators 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/ */
dynamikaweb / yii2-br-validators example snippets
use Yii;
use yii\base\Model;
use dynamikaweb\validators\TituloValidator;
class PersonExample extends Model
{
public $name;
public $titulo_eleitor;
/**
* @return array the validation rules.
*/
public function rules()
{
return [
// name is