PHPackages                             partimate/throttlemate - 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. partimate/throttlemate

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

partimate/throttlemate
======================

Adaptive Throttling for Laravel to handle connection bottleneck with Graceful Degradation

v2.1.0(1y ago)03MITPHPPHP &gt;=8.1

Since Mar 6Pushed 1y ago1 watchersCompare

[ Source](https://github.com/dedenfarhanhub/ThrottleMate)[ Packagist](https://packagist.org/packages/partimate/throttlemate)[ RSS](/packages/partimate-throttlemate/feed)WikiDiscussions main Synced 1mo ago

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

ThrottleMate 🚀
==============

[](#throttlemate-)

**Adaptive Throttling for Laravel with Optional Graceful Degradation**

ThrottleMate helps you handle **connection bottleneck** and **API abuse** with dynamic adaptive throttling.

---

### Features

[](#features)

- Adaptive Rate Limiting
- Graceful Degradation (Cache + Queue Fallback)
- Compatible from Laravel 5.x to 11.x
- High Performance with Zero Dependency
- Developer Friendly API
- Automatic Cache Recovery

---

### Install

[](#install)

```
composer require partimate/throttlemate
php artisan vendor:publish --tag=throttlemate
```

---

### Usage

[](#usage)

#### Basic Throttling

[](#basic-throttling)

```
use PartiMate\ThrottleMate\AdaptiveThrottler;

$result = AdaptiveThrottler::make()
    ->throttle(fn () => 'Process Request', 'api:request', 100, 60);
```

#### Graceful Degradation (Cache Fallback)

[](#graceful-degradation-cache-fallback)

```
$result = AdaptiveThrottler::make('cache', true)
    ->throttle(fn () => 'Fetch User Data', 'user:fetch', 50, 30);
```

#### Graceful Degradation (Queue Fallback)

[](#graceful-degradation-queue-fallback)

```
$result = AdaptiveThrottler::make('queue', true)
    ->throttle(fn () => 'Send Email', 'email:send', 100, 60);
```

#### Throttle Middleware

[](#throttle-middleware)

```
Route::get('/api/data', [DataController::class, 'index'])->middleware('throttle.mate');
```

#### Configurable Rate Limit &amp; TTL

[](#configurable-rate-limit--ttl)

Modify `config/throttlemate.php`:

```
return [
    'limit' => 200, // Requests per minute
    'ttl' => 120,  // Expire time in seconds
];
```

---

### Benchmark Results ⚡️

[](#benchmark-results-️)

PackageRequest RateGracefulCPU UsageMemoryThrottleMate**10k/s**✅🔥 2%5MBLaravel5k/s❌7%12MBRedis8k/s❌5%8MB---

### Why ThrottleMate?

[](#why-throttlemate)

FeatureThrottleMateLaravelRedisAdaptive Rate Limit✅❌❌Graceful Degradation✅❌❌Automatic Recovery✅❌❌Zero Dependency✅❌❌High Performance🔥⚡⚡Easy to Use✅✅❌---

### Contributing

[](#contributing)

Any contributions are welcome! Feel free to submit a pull request or open an issue.

---

### License

[](#license)

ThrottleMate is open-source software licensed under the **MIT License**.

---

### Contact

[](#contact)

Developed with ❤️ by [Deden Farhan](https://github.com/dedenfarhanhub)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance44

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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 ~0 days

Total

4

Last Release

439d ago

Major Versions

v1.0.1 → v2.0.02025-03-06

### Community

Maintainers

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

---

Top Contributors

[![dedenfarhanhub](https://avatars.githubusercontent.com/u/106763240?v=4)](https://github.com/dedenfarhanhub "dedenfarhanhub (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/partimate-throttlemate/health.svg)

```
[![Health](https://phpackages.com/badges/partimate-throttlemate/health.svg)](https://phpackages.com/packages/partimate-throttlemate)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9346.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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