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

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

coolephp/rate-limiter
=====================

Provides a Token Bucket implementation to rate limit input and output in your Coole application. - 提供令牌桶实现来限制 Coole 应用程序中的输入和输出。

v1.0.1(4y ago)115MITPHPPHP &gt;=7.2

Since Jun 3Pushed 4y agoCompare

[ Source](https://github.com/coolephp/rate-limiter)[ Packagist](https://packagist.org/packages/coolephp/rate-limiter)[ Docs](https://github.com/coolephp/rate-limiter)[ Fund](https://www.guanguans.cn/images/wechat.jpeg)[ RSS](/packages/coolephp-rate-limiter/feed)WikiDiscussions main Synced 6d ago

READMEChangelogDependencies (9)Versions (3)Used By (0)

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

[](#rate-limiter)

[简体中文](README-CN.md) | [ENGLISH](README.md)

> Provides a Token Bucket implementation to rate limit input and output in your Coole application. - 提供令牌桶实现来限制 Coole 应用程序中的输入和输出。

[![Tests](https://github.com/coolephp/rate-limiter/workflows/Tests/badge.svg)](https://github.com/coolephp/rate-limiter/actions)[![Check & fix styling](https://github.com/coolephp/rate-limiter/workflows/Check%20&%20fix%20styling/badge.svg)](https://github.com/coolephp/rate-limiter/actions)[![codecov](https://camo.githubusercontent.com/000475e00002ed32f7d031093dfb98e908b636968ac579a65591f4c1b8f44d1c/68747470733a2f2f636f6465636f762e696f2f67682f636f6f6c657068702f726174652d6c696d697465722f6272616e63682f6d61696e2f67726170682f62616467652e7376673f746f6b656e3d55524746415753365334)](https://codecov.io/gh/coolephp/rate-limiter)[![Latest Stable Version](https://camo.githubusercontent.com/2e394c4c9d4eb7bbf9de0b07e8352488c63b4dd95dfc64f19fbab0c76670ac3e/68747470733a2f2f706f7365722e707567782e6f72672f636f6f6c657068702f726174652d6c696d697465722f76)](//packagist.org/packages/coolephp/rate-limiter)[![Total Downloads](https://camo.githubusercontent.com/8a927b5005c886d3a2048584bccaa6c33f1386fde6afe223144c849255d99a87/68747470733a2f2f706f7365722e707567782e6f72672f636f6f6c657068702f726174652d6c696d697465722f646f776e6c6f616473)](//packagist.org/packages/coolephp/rate-limiter)[![License](https://camo.githubusercontent.com/8a27a257776a93cdcf2e84527ecdd092eee634dc4018f381f30361dc9ee2baa8/68747470733a2f2f706f7365722e707567782e6f72672f636f6f6c657068702f726174652d6c696d697465722f6c6963656e7365)](//packagist.org/packages/coolephp/rate-limiter)

Requirement
-----------

[](#requirement)

- PHP &gt;= 7.2

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

[](#installation)

```
$ composer require coolephp/rate-limiter --prefer-dist -vvv
```

Usage
-----

[](#usage)

1. Copy `rate-limiter/config/rate-limiter.php` to `coole-skeleton/config/rate-limiter.php`.
2. Config `\Coole\RateLimiter\RateLimiter::class` middleware.

```
