PHP code example of mahkali / yii2-bsnvalidator
1. Go to this page and download the library: Download mahkali/yii2-bsnvalidator 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/ */
mahkali / yii2-bsnvalidator example snippets
// add this in your model
use mahkali\validators\BsnValidator;
// use the validator in your model rules
public function rules()
{
return [
['bsn', BsnValidator::class],
];
}
bash
./yii message @vendor/mahkali/yii2-bsnvalidator/src/messages/config.php