Download the PHP package rikcage/yii2-bfp without Composer
On this page you can find all versions of the php package rikcage/yii2-bfp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-bfp
bfp
Brute force protect
Install:
php composer.phar require rikcage/yii2-bfp "*"
php yii migrate --migrationPath=vendor/rikcage/yii2-bfp/migrations
Usage:
In conif add
'bfp'=>[
'class'=>'rikcage\bfp\BfpClass',
'params' => [
'accessRoles'=>['admin',], // role for admin page
],
],
Admin url: my.site/bfp/bfp-settings/index
In controller add
use rikcage\bfp\behaviors\BfpBehavior;
public function behaviors()
{
return [
'as BfpClass' => [
'class' => BfpBehavior::className(),
],
];
}
In model add
use rikcage\bfp\behaviors\BfpBehavior;
public function behaviors()
{
$parent_bahaviors = parent::behaviors();
$this_behaviors = [
'as BfpClass' => [
'class' => BfpBehavior::className(),
],
];
return array_merge($parent_bahaviors, $this_behaviors);
}
All versions of yii2-bfp with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
The package rikcage/yii2-bfp contains the following files
Loading the files please wait ....