PHPackages                             ziya/yii2-redis-rate-limiter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. ziya/yii2-redis-rate-limiter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ziya/yii2-redis-rate-limiter
============================

Yii2 redis rate limiter.

0.3(5y ago)028Apache-2.0PHPPHP &gt;=7.3.0

Since May 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ZiyaVakhobov/yii2-redis-rate-limiter)[ Packagist](https://packagist.org/packages/ziya/yii2-redis-rate-limiter)[ RSS](/packages/ziya-yii2-redis-rate-limiter/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

yii2-redis-rate-limiter
=======================

[](#yii2-redis-rate-limiter)

**Example code**

```
use ziya\RedisRateLimiter\exceptions\LimitExceeded;
use ziya\RedisRateLimiter\Limiter;

$key = 'api_request_{user_id}'; //Unique key identifier
$count = 60; // Request count in given amount of time
$interval = 60; //Request interval time
$limiter = new Limiter($key,$count,$interval);
//Set connection is optional. By default it get connection from Yii::$app->redis
// $limiter->setConnection(Yii::$app->redis);

try {
    $limiter->limit();
    //limit not exceeded
} catch (LimitExceeded $exception) {
   //limit exceeded
}
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

1835d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f65e0b705d1efcb5b837481f9203cde712ff03f20e6eb393bc9facbd0115c73?d=identicon)[ZiyaVakhobov](/maintainers/ZiyaVakhobov)

---

Top Contributors

[![ZiyaVakhobov](https://avatars.githubusercontent.com/u/26081148?v=4)](https://github.com/ZiyaVakhobov "ZiyaVakhobov (7 commits)")

### Embed Badge

![Health badge](/badges/ziya-yii2-redis-rate-limiter/health.svg)

```
[![Health](https://phpackages.com/badges/ziya-yii2-redis-rate-limiter/health.svg)](https://phpackages.com/packages/ziya-yii2-redis-rate-limiter)
```

PHPackages © 2026

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