dektrium/yii2-passfield Passfield widget for Yii2

passfielddektrium

Yii2-passfield

Passfield widget for Yii2.

Installation

Either run following command:

$ php composer.phar require --prefer-dist dektrium/yii2-passfield "dev-master"

or add

"dektrium/yii2-passfield": "dev-master"

to the require section of your composer.json file and run following command:

$ php composer.phar update

Usage

If you are using active form you can all the widget as follows:

<?= \dektrium\passfield\Passfield::widget([
    'form'      => $form,      // active form instance
    'model'     => $model,     // your model
    'attribute' => 'password', // model attribute name
    'config'    => []          // passfield configuration
]) ?>

Or if you are not using active form:

<?= \dektrium\passfield\Passfield::widget([
    'name'   => 'password', // the input name
    'config' => []          // passfield configuration
]) ?>

License

Yii2-passfield is released under the MIT License. See the bundled https://github.com/dektrium/yii2-passfield/blob/master/LICENSE.md for details.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

No stable releases.

Comments



No stable releases.



MIT license
Stats
3 github stars & 3 github forks
0 downloads in the last day
1 downloads in the last 30 days
260 total downloads