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.4k4MITPHP

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 3w ago

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

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

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

855d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/73380446?v=4)[Wellming](/maintainers/Wellming)[@wellming](https://github.com/wellming)

![](https://avatars.githubusercontent.com/u/4514598?v=4)[zhongyunchang](/maintainers/bellorchid)[@bellorchid](https://github.com/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)
```

###  Alternatives

[gregoiredavid/france-geojson

Contours des régions, départements, arrondissements, cantons et communes de France (métropole et départements d'outre-mer) au format GeoJSON

8181.1k1](/packages/gregoiredavid-france-geojson)[eadesigndev/module-fullbreadcrumbs

Full breadcrumbs for product page

223.9k](/packages/eadesigndev-module-fullbreadcrumbs)

PHPackages © 2026

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