1. Go to this page and download the library: Download eluhr/yii2-password-input 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/ */
eluhr / yii2-password-input example snippets
use eluhr\passwordInput\widgets\PasswordInput;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
$form = ActiveForm::begin();
echo $form->field($model, 'password')->widget(PasswordInput::class, [
'buttonLabelShow' => \Yii::t('password-input', 'Show'),
'buttonLabelHide' => \Yii::t('password-input', 'Hide'),
'layout' => "{input}\n{bars}\n{summary}",
'loadRulesFromModel' => false,
'rules' => [
[
'text' => 'Must be at least 8 characters long',
'pattern' => '/[0-9a-zA-Z]{8,}/'
],
[
'text' => 'Must
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.