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 1w 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

26

—

LowBetter than 40% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

530d ago

Major Versions

v1.0.1 → v2.0.02025-03-06

### Community

Maintainers

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

[illuminate/pagination

The Illuminate Pagination package.

12234.6M1.1k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9350.2M311](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.8M410](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.7M146](/packages/illuminate-cookie)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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