PHPackages                             antonyz89/yii2-password-behavior - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. antonyz89/yii2-password-behavior

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

antonyz89/yii2-password-behavior
================================

Behavior for manage password

0.1.3.3(4y ago)11.6k↓75%[1 issues](https://github.com/AntonyZ89/yii2-password-behavior/issues)MITPHP

Since Feb 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/AntonyZ89/yii2-password-behavior)[ Packagist](https://packagist.org/packages/antonyz89/yii2-password-behavior)[ RSS](/packages/antonyz89-yii2-password-behavior/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Yii2 Password Behavior
======================

[](#yii2-password-behavior)

Behavior for manage password

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist antonyz89/yii2-password-behavior "*"

```

or add

```
"antonyz89/yii2-password-behavior": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Just add `PasswordBehavior::class` on Model's behavior function:

```
public function behaviors()
{
    return [
        PasswordBehavior::class,
    ];
}
```

`_form.php`:

```
