PHPackages                             uz/yii2-ip-ratelimiter - 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. uz/yii2-ip-ratelimiter

ActiveYii2-module

uz/yii2-ip-ratelimiter
======================

Allow guest clients to be rate limited, using their IP as the identifier.

1.0.2(9y ago)219MITPHP

Since Nov 25Pushed 9y ago1 watchersCompare

[ Source](https://github.com/mronx/yii2ip-rate-limiter)[ Packagist](https://packagist.org/packages/uz/yii2-ip-ratelimiter)[ RSS](/packages/uz-yii2-ip-ratelimiter/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)DependenciesVersions (4)Used By (0)

[![Yii2 IP Rate Limiter](res/banner.jpg)](res/banner.jpg)

yii2-ip-ratelimiter
===================

[](#yii2-ip-ratelimiter)

Allow guest clients to be rate limited, using their IP as the identifier.

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

[](#installation)

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

Either run

```
php composer.phar require uz/yii2-ip-ratelimiter "^1.0"

```

or add

```
"uz/yii2-ip-ratelimiter": "^1.0"

```

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

Usage
-----

[](#usage)

Modify the bahavior method of the controller you want to rate limit

```
public function behaviors()
{
	$behaviors = parent::behaviors();
	$behaviors['rateLimiter'] = [
		// Use class
		'class' => \Mronx\ratelimiter\RateLimiter::className(),

		// The maximum number of allowed requests
		'rateLimit' => 100,

		// The time period for the rates to apply to
		'timePeriod' => 600,

		// Separate rate limiting for guests and authenticated users
		// Defaults to true
		// - false: use one set of rates, whether you are authenticated or not
		// - true: use separate ratesfor guests and authenticated users
		'separateRates' => false,

		// Whether to return HTTP headers containing the current rate limiting information
		'enableRateLimitHeaders' => false,
	];
	return $behaviors;
}

```

Forked from `ethercreative/yii2-ip-ratelimiter`

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

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 ~0 days

Total

3

Last Release

3456d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7ecf679795f3ea88e053b8697055830481ddecb987341ccea2c22b04ec5360f?d=identicon)[uz](/maintainers/uz)

---

Top Contributors

[![professor93](https://avatars.githubusercontent.com/u/5443574?v=4)](https://github.com/professor93 "professor93 (13 commits)")

---

Tags

yii2ratelimiter

### Embed Badge

![Health badge](/badges/uz-yii2-ip-ratelimiter/health.svg)

```
[![Health](https://phpackages.com/badges/uz-yii2-ip-ratelimiter/health.svg)](https://phpackages.com/packages/uz-yii2-ip-ratelimiter)
```

###  Alternatives

[ethercreative/yii2-ip-ratelimiter

Allow guest clients to be rate limited, using their IP as the identifier.

36138.8k1](/packages/ethercreative-yii2-ip-ratelimiter)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

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