2017 © Pedro Peláez
 

yii2-extension yii2-bfp

Brute-force protect in YII2

image

rikcage/yii2-bfp

Brute-force protect in YII2

  • Wednesday, August 30, 2017
  • by rikcage
  • Repository
  • 0 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

bfp

Brute force protect, (*1)

Install:, (*2)

php composer.phar require rikcage/yii2-bfp "*", (*3)

php yii migrate --migrationPath=vendor/rikcage/yii2-bfp/migrations, (*4)

Usage:, (*5)

In conif add, (*6)

    'bfp'=>[
        'class'=>'rikcage\bfp\BfpClass',
        'params' => [
            'accessRoles'=>['admin',], // role for admin page
        ],
    ],      

Admin url: my.site/bfp/bfp-settings/index, (*7)

In controller add, (*8)

use rikcage\bfp\behaviors\BfpBehavior;, (*9)

public function behaviors()
{
    return [
        'as BfpClass' => [
            'class' => BfpBehavior::className(),
        ],
    ];
}

In model add, (*10)

use rikcage\bfp\behaviors\BfpBehavior;, (*11)

public function behaviors()
{

    $parent_bahaviors = parent::behaviors();
    $this_behaviors = [
        'as BfpClass' => [
            'class' => BfpBehavior::className(),
        ],
    ];
    return array_merge($parent_bahaviors, $this_behaviors);

}

The Versions

30/08 2017

dev-master

9999999-dev

Brute-force protect in YII2

  Sources   Download

MIT

The Requires

 

yii bfp

30/08 2017

1.0.1

1.0.1.0

Brute-force protect in YII2

  Sources   Download

MIT

The Requires

 

yii bfp

26/06 2017

1.0.0

1.0.0.0

Brute-force protect in YII2

  Sources   Download

MIT

The Requires

 

yii bfp