PHPackages                             hedii/laravel-throttle-route - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. hedii/laravel-throttle-route

ActiveLibrary[HTTP &amp; Networking](/categories/http)

hedii/laravel-throttle-route
============================

A Laravel package to throttle requests based on route name

2.0.0(6y ago)061.9k1[1 PRs](https://github.com/hedii/laravel-throttle-route/pulls)MITPHPPHP ^7.2.5CI failing

Since Feb 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/hedii/laravel-throttle-route)[ Packagist](https://packagist.org/packages/hedii/laravel-throttle-route)[ RSS](/packages/hedii-laravel-throttle-route/feed)WikiDiscussions master Synced 3w ago

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

[![Build Status](https://camo.githubusercontent.com/3478ddbd6fa61cb5ae4fdb3fd5e8d4e8a15ea3338ededcd9bff34d7bd3661bf7/68747470733a2f2f7472617669732d63692e6f72672f68656469692f6c61726176656c2d7468726f74746c652d726f7574652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/hedii/laravel-throttle-route)

Laravel Throttle Route
======================

[](#laravel-throttle-route)

A Laravel package to throttle requests based on route name.

The default Laravel request throttler acts as a global throttler based on user ID or IP. This package allows to have a request limit set by route, by using the route name to resolve the request signature.

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

[](#installation)

Install with [composer](https://getcomposer.org/doc/00-intro.md)

```
composer require hedii/laravel-throttle-route

```

Usage
-----

[](#usage)

Add the middleware in your route, and use it as the default Laravel ThrottleRequests middleware.

Don't forget to set a route name.

```
Route::get('/first', 'FirstController@show')
    ->middleware(\Hedii\LaravelThrottleRoute\ThrottleRequests::class . ':20,1')
    ->name('first');

Route::get('/second', 'SecondController@show')
    ->middleware(\Hedii\LaravelThrottleRoute\ThrottleRequests::class . ':60,1')
    ->name('second');
```

Testing
-------

[](#testing)

```
composer test

```

License
-------

[](#license)

laravel-throttle-route is released under the MIT Licence. See the bundled [LICENSE](https://github.com/hedii/laravel-throttle-route/blob/master/LICENSE.md) file for details.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

Total

3

Last Release

2307d ago

Major Versions

1.1.0 → 2.0.02020-03-03

### Community

Maintainers

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

---

Top Contributors

[![hedii](https://avatars.githubusercontent.com/u/5358048?v=4)](https://github.com/hedii "hedii (6 commits)")

---

Tags

laravelrate-limiterrate limithediithrottlethrottlerlaravel-throttle-route

### Embed Badge

![Health badge](/badges/hedii-laravel-throttle-route/health.svg)

```
[![Health](https://phpackages.com/badges/hedii-laravel-throttle-route/health.svg)](https://phpackages.com/packages/hedii-laravel-throttle-route)
```

###  Alternatives

[lomkit/laravel-rest-api

A package to build quick and robust rest api for the Laravel framework.

59659.4k](/packages/lomkit-laravel-rest-api)[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)[api-platform/laravel

API Platform support for Laravel

59156.3k11](/packages/api-platform-laravel)[hamburgscleanest/laravel-guzzle-throttle

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

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

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)

PHPackages © 2026

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