PHPackages                             atakde/php-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. atakde/php-rate-limiter

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

atakde/php-rate-limiter
=======================

PHP Rate limiter

v1.0.0(3y ago)162792PHP

Since Dec 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/atakde/php-rate-limiter)[ Packagist](https://packagist.org/packages/atakde/php-rate-limiter)[ RSS](/packages/atakde-php-rate-limiter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

php-rate-limiter
================

[](#php-rate-limiter)

A PHP package for rate limiting.

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

[](#installation)

Install via composer

```
composer require atakde/php-rate-limiter
```

Usage
-----

[](#usage)

```
$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
$storage = new RedisStorage($redis);

// Allow maximum 10 requests in 60 seconds.
$rateLimitter = new RateLimiter([
    'refillPeriod' => 60,
    'maxCapacity' => 10,
    'prefix' => 'api'
], $storage);

$ip = $_SERVER['REMOTE_ADDR'];
if ($rateLimitter->check($ip)) {
    echo 'OK';
} else {
    echo 'Limit Exceeded';
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

1258d ago

### Community

Maintainers

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

---

Top Contributors

[![atakde](https://avatars.githubusercontent.com/u/31544037?v=4)](https://github.com/atakde "atakde (6 commits)")

### Embed Badge

![Health badge](/badges/atakde-php-rate-limiter/health.svg)

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

###  Alternatives

[verbalexpressions/php-verbal-expressions

PHP Regular expressions made easy

2.4k49.4k2](/packages/verbalexpressions-php-verbal-expressions)

PHPackages © 2026

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