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

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

rapidsquirrel/laravel-rate-limiter
==================================

A robust and customizable rate-limiting middleware for laravel

10PHP

Since Aug 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/amrq88/laravel-rate-limiter)[ Packagist](https://packagist.org/packages/rapidsquirrel/laravel-rate-limiter)[ RSS](/packages/rapidsquirrel-laravel-rate-limiter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Rate Limiter
====================

[](#laravel-rate-limiter)

This project implements a rate limiter for a Laravel application, providing protection against excessive requests and potential abuse.

Features
--------

[](#features)

- Simple integration with Laravel framework.
- Configurable request limits.
- Middleware for applying rate limits on specific routes.

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

[](#installation)

1. Clone the repository:

```
git clone https://github.com/amrq88/laravel-rate-limiter.git
cd laravel-rate-limiter
```

2. Install dependencies:

```
composer install
```

3. Copy the example environment file and update your environment variables:

```
cp .env.example .env
php artisan key:generate
```

4. Run the migrations:

```
php artisan migrate
```

Configuration
-------------

[](#configuration)

You can configure the rate limiter settings in the `config/rate_limiter.php` file.

```
return [
    'limits' => [
        'default' => [
            'max_attempts' => 60,
            'decay_minutes' => 1,
        ],
        // Add other rate limit configurations here
    ],
];
```

Usage
-----

[](#usage)

Apply the rate limiter middleware to your routes in `routes/web.php` or `routes/api.php`:

```
use App\Http\Middleware\RateLimiter;

Route::middleware([RateLimiter::class])->group(function () {
    Route::get('/your-route', [YourController::class, 'yourMethod']);
});
```

Contributing
------------

[](#contributing)

If you would like to contribute, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.

1. Fork the project
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

Contact
-------

[](#contact)

For any inquiries, please contact [Amr Qawasmeh](mailto:amrq88@gmail.com).

---

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity17

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![amrq88](https://avatars.githubusercontent.com/u/34725876?v=4)](https://github.com/amrq88 "amrq88 (2 commits)")

### Embed Badge

![Health badge](/badges/rapidsquirrel-laravel-rate-limiter/health.svg)

```
[![Health](https://phpackages.com/badges/rapidsquirrel-laravel-rate-limiter/health.svg)](https://phpackages.com/packages/rapidsquirrel-laravel-rate-limiter)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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