PHPackages                             codeages/biz-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. codeages/biz-rate-limiter

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

codeages/biz-rate-limiter
=========================

Rate limiter with Biz Framework.

v0.1.13(2y ago)12.4k↓100%4MITPHP

Since Nov 30Pushed 2y ago2 watchersCompare

[ Source](https://github.com/codeages/biz-rate-limiter)[ Packagist](https://packagist.org/packages/codeages/biz-rate-limiter)[ RSS](/packages/codeages-biz-rate-limiter/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (16)Used By (0)

Biz RateLimiter
===============

[](#biz-ratelimiter)

一个速率控制服务。

安装
--

[](#安装)

```
composer require codeages/biz-rate-limiter

```

使用
--

[](#使用)

在程序启动处加入：

```
$biz->register(new RateLimiterServiceProvider());
```

创建limiter对象：

```
$factory = $biz['ratelimiter.factory'];
$limiter = $factory('ip', 10, 600); // 速率：10/600秒

$remain = $limiter->check('127.0.0.1');
if ($remain === false) {    // 注意需使用恒等‘===’，因为$remain的值可能为0。
    echo '已达到限制';
} else {
    echo '还剩余'.$remain.'次';
}
```

###  Health Score

33

↑

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 69.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 ~203 days

Recently: every ~584 days

Total

14

Last Release

763d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e6f8246b2e0cf9bb1e36263675cd2f86128fde2b44b7db515af38d98d75fb65?d=identicon)[Wellming](/maintainers/Wellming)

![](https://www.gravatar.com/avatar/876e2f89251badfefaec373a049de33dd49f8ba573a1ed052fc54b679bef7dea?d=identicon)[bellorchid](/maintainers/bellorchid)

---

Top Contributors

[![lileiseven](https://avatars.githubusercontent.com/u/94609?v=4)](https://github.com/lileiseven "lileiseven (9 commits)")[![retamia](https://avatars.githubusercontent.com/u/9671597?v=4)](https://github.com/retamia "retamia (2 commits)")[![ahajason](https://avatars.githubusercontent.com/u/25841011?v=4)](https://github.com/ahajason "ahajason (1 commits)")[![bellorchid](https://avatars.githubusercontent.com/u/4514598?v=4)](https://github.com/bellorchid "bellorchid (1 commits)")

### Embed Badge

![Health badge](/badges/codeages-biz-rate-limiter/health.svg)

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

PHPackages © 2026

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