PHP code example of pjhl / yii2-pwstrength
1. Go to this page and download the library: Download pjhl/yii2-pwstrength 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/ */
pjhl / yii2-pwstrength example snippets
use pjhl\pwstrength\StrengthValidator;
// use the validator in your model rules
public function rules() {
return [
[['username', 'password'], '
<?= $form->field($model, 'password', [
"template" => "{input}"
])->passwordInput()
bash
php composer.phar