PHPackages                             godsdev/rate-limiter-interface - 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. godsdev/rate-limiter-interface

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

godsdev/rate-limiter-interface
==============================

limits number of its calls per time

v0.1.1(8y ago)0351MITPHP

Since Apr 5Pushed 8y ago2 watchersCompare

[ Source](https://github.com/GodsDev/rate-limiter-interface)[ Packagist](https://packagist.org/packages/godsdev/rate-limiter-interface)[ RSS](/packages/godsdev-rate-limiter-interface/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (6)Used By (1)

Request rate limiter interface
------------------------------

[](#request-rate-limiter-interface)

Limits the number of requests per time.

- There are two parameters: `period` and `rate`.
- A request is a call of the `inc()` method. An `inc()` method begins to return false if number of requests per `period` is higher than a `rate`. Unit of `period` MAY be second or any other time unit.

Test notes
----------

[](#test-notes)

`test.sh` runs the PHPUnit tests.

`test-coverage.sh` generates the PHPUnit coverage analysis to the temp folder.

If the `php -v` command does not show the `with Xdebug` line, note that for coverage testing you might need to manually edit the php.ini used by your PHP CLI in order to enable the

```
; XDEBUG Extension
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.2% 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 ~30 days

Total

4

Last Release

3233d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8134fa965109abdfec69ad5215765895abd2cb77673c8c412dd7f7d85af6625b?d=identicon)[GodsDev](/maintainers/GodsDev)

---

Top Contributors

[![tomaskraus](https://avatars.githubusercontent.com/u/3328636?v=4)](https://github.com/tomaskraus "tomaskraus (58 commits)")[![GodsDev](https://avatars.githubusercontent.com/u/2787653?v=4)](https://github.com/GodsDev "GodsDev (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/godsdev-rate-limiter-interface/health.svg)

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

PHPackages © 2026

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