PHPackages                             rackbeat/php-throttler - 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. rackbeat/php-throttler

ActiveLibrary

rackbeat/php-throttler
======================

Throttle PHP function calls and iteration runs by X executions per second.

0.9.2(6y ago)1135.4k[1 PRs](https://github.com/Rackbeat/php-throttler/pulls)MITPHPPHP &gt;=7.3CI passing

Since Nov 3Pushed 3mo ago1 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (5)Used By (0)

[![Rackbeat throttler](logo.png)](logo.png)
Throttle PHP actions to only run a set amount of times within a given timeframe.
Especially useful to avoid rate limiting, high CPU usage or DOS'ing your own services (database etc.)

 [![Build Status](https://camo.githubusercontent.com/e7ba6d4658f164b945dc9c6791ba4ce36fd72cefb211ea59b625479f3e2ca168/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5261636b626561742f7068702d7468726f74746c65722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Rackbeat/php-throttler)[![Coverage](https://camo.githubusercontent.com/1eb0f95b2e9eef8e28d0f2e4cd46b2607d4c3302d1a7774de94ab0c5d6ecf9be/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f5261636b626561742f7068702d7468726f74746c65722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/Rackbeat/php-throttler)[![Total Downloads](https://camo.githubusercontent.com/069a96f567646d8c752fdd3beb9cf98edb7a1616c9b4589d1bfa9819cbd46032/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7261636b626561742f7068702d7468726f74746c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rackbeat/php-throttler)[![Latest Stable Version](https://camo.githubusercontent.com/1798fd1599aae865d7c9ebd4bf500f18c375e7181669aaf3e9be4ebf93216454/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7261636b626561742f7068702d7468726f74746c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rackbeat/php-throttler)[![License](https://camo.githubusercontent.com/1906ab50d171b1faa1a05a809fa944f442bfc2c51cea1626444921b2af57afba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7261636b626561742f7068702d7468726f74746c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rackbeat/php-throttler)

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

[](#installation)

You just require using composer and you're good to go!

```
composer require rackbeat/php-throttler
```

Usage
-----

[](#usage)

### Basic example

[](#basic-example)

```
use Rackbeat\Throttler\Throttler;

Throttler::make( range(1,100) )->allow(10)->every(1)->run( function($value, $key) {
    // do something with $value
} );
```

Requirements
------------

[](#requirements)

- PHP &gt;= 7.3

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance53

Moderate activity, may be stable

Popularity33

Limited adoption so far

Community7

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

Every ~42 days

Total

3

Last Release

2304d ago

### Community

Maintainers

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

---

Top Contributors

[![LasseRafn](https://avatars.githubusercontent.com/u/2689341?v=4)](https://github.com/LasseRafn "LasseRafn (26 commits)")

---

Tags

phplaravelrate limitthrottle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rackbeat-php-throttler/health.svg)

```
[![Health](https://phpackages.com/badges/rackbeat-php-throttler/health.svg)](https://phpackages.com/packages/rackbeat-php-throttler)
```

###  Alternatives

[graham-campbell/throttle

Throttle Is A Rate Limiter For Laravel

7102.3M11](/packages/graham-campbell-throttle)[hamburgscleanest/guzzle-advanced-throttle

A Guzzle middleware that can throttle requests according to (multiple) defined rules. It is also possible to define a caching strategy, e.g. get response from cache when rate limit is exceeded or always get cached value to spare your rate limits.

13033.4k1](/packages/hamburgscleanest-guzzle-advanced-throttle)[hamburgscleanest/laravel-guzzle-throttle

A Laravel wrapper for https://github.com/hamburgscleanest/guzzle-advanced-throttle.

7914.3k](/packages/hamburgscleanest-laravel-guzzle-throttle)[octw/aramex

A Library to integrate with Aramex APIs

2925.2k](/packages/octw-aramex)

PHPackages © 2026

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