d3th/yii2-zxcvbn-validator

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

A realistic password strength estimator for Yii2

v0.1.0 2016-01-21 21:04 UTC

This package is not auto-updated.

Last update: 2018-04-28 13:24:49 UTC


README

ZxcvbnPasswordValidator is a password strength estimator for Yii Framework. Based on the ZxcvbnPhp library from bjeavons.

Installation

The preferred way to install this extension is through composer.

Either run

composer require d3th/yii2-zxcvbn-validator

or add

"d3th/yii2-zxcvbn-validator": "*"

to the require section of your composer.json.

Usage

public function rules()
{
    return [
        ['password', 'required'],
        ['password', 'string', 'min' => 8],
        ['password', ZxcvbnPasswordValidator::className(), 'minScore' => 3]
    ];
}

Acknowledgements