PHPackages                             rikcage/yii2-bfp - 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. [Security](/categories/security)
4. /
5. rikcage/yii2-bfp

ActiveYii2-extension[Security](/categories/security)

rikcage/yii2-bfp
================

Brute-force protect in YII2

1.0.1(8y ago)021MITPHP

Since Jun 26Pushed 8y agoCompare

[ Source](https://github.com/rikcage/bfp)[ Packagist](https://packagist.org/packages/rikcage/yii2-bfp)[ RSS](/packages/rikcage-yii2-bfp/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

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);

}

```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~64 days

Total

2

Last Release

3226d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29402340?v=4)[rik cage](/maintainers/rikcage)[@rikcage](https://github.com/rikcage)

---

Top Contributors

[![rikcage](https://avatars.githubusercontent.com/u/29402340?v=4)](https://github.com/rikcage "rikcage (1 commits)")

---

Tags

yiibfp

### Embed Badge

![Health badge](/badges/rikcage-yii2-bfp/health.svg)

```
[![Health](https://phpackages.com/badges/rikcage-yii2-bfp/health.svg)](https://phpackages.com/packages/rikcage-yii2-bfp)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[cleantalk/yii-antispam

Anti-spam yii extension by CleanTalk with protection against spam bots and manual spam.

161.4k](/packages/cleantalk-yii-antispam)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
