dektrium/yii2-passfield

This package is abandoned and no longer maintained. No replacement package was suggested.

Passfield widget for Yii2

Installs: 260

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 3

Forks: 3

Open Issues: 0

Type:yii2-extension

dev-master 2014-04-16 14:26 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:34:15 UTC


README

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 LICENSE.md for details.