PHPackages                             cschalenborgh/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. cschalenborgh/laravel-rate-limiter

ActiveLibrary

cschalenborgh/laravel-rate-limiter
==================================

Rate limiter for Laravel

1.0.3(6y ago)1716MITPHPPHP &gt;=7.1CI failing

Since Jul 18Pushed 6y agoCompare

[ Source](https://github.com/cschalenborgh/laravel-rate-limiter)[ Packagist](https://packagist.org/packages/cschalenborgh/laravel-rate-limiter)[ RSS](/packages/cschalenborgh-laravel-rate-limiter/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (5)Versions (6)Used By (0)

Rate Limiter package for Laravel
================================

[](#rate-limiter-package-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7bb004a83228748e10ef4d738f862ab23f264cfb68cb5ce88a0b84ec5124f958/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63736368616c656e626f7267682f6c61726176656c2d726174652d6c696d697465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cschalenborgh/laravel-rate-limiter)[![Build Status](https://camo.githubusercontent.com/0158f67f4e2248f2e05221538fbe683bc70a1db34d0f32f53cbaf7853a7d0b36/68747470733a2f2f7472617669732d63692e6f72672f63736368616c656e626f7267682f6c61726176656c2d726174652d6c696d697465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/cschalenborgh/laravel-rate-limiter)[![Code Coverage (GitHub)](https://camo.githubusercontent.com/97bf16a2e030ada62f31e8beebd6727329aa9ca6e54a7ecc4e176a7f61631f82/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f63736368616c656e626f7267682f6c61726176656c2d726174652d6c696d69746572)](https://camo.githubusercontent.com/97bf16a2e030ada62f31e8beebd6727329aa9ca6e54a7ecc4e176a7f61631f82/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f63736368616c656e626f7267682f6c61726176656c2d726174652d6c696d69746572)[![StyleCI](https://camo.githubusercontent.com/b5f4e3edbd20798b578daf8079a029b7c4b4edc5a10f734af852fe37b0f424bd/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3139373436323330312f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/197462301)[![Total Downloads](https://camo.githubusercontent.com/c22e505c65dc5f80f552325d94de5b8a1684c89a7060f3c7f8448d91134b2d60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63736368616c656e626f7267682f6c61726176656c2d726174652d6c696d697465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cschalenborgh/laravel-rate-limiter)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Description
===========

[](#description)

You can use this package to easily rate limiter specific logic in your Laravel application, from Guzzle requests, to more specific application logic. This package is based on .

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

[](#installation)

You can install the package via composer:

```
composer require cschalenborgh/laravel-rate-limiter
```

The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:

```
'providers' => [
    // ...
    Cschalenborgh\RateLimiter\RateLimiterServiceProvider::class,
];
```

Usage
-----

[](#usage)

```
use Cschalenborgh\RateLimiter\RateLimiter;

$rate_limiter = new RateLimiter('action_name', 5, 60); // max 5 times in 60 seconds

if ($rate_limiter->check($lock_identifier)) {
    // perform some action
} else {
    // oops.. limit reached
}
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~91 days

Total

4

Last Release

2216d ago

### Community

Maintainers

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

---

Top Contributors

[![cschalenborgh](https://avatars.githubusercontent.com/u/10864861?v=4)](https://github.com/cschalenborgh "cschalenborgh (22 commits)")[![necenzurat](https://avatars.githubusercontent.com/u/145449?v=4)](https://github.com/necenzurat "necenzurat (2 commits)")

---

Tags

laravelrate-limiterrate limitthrottle

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)

PHPackages © 2026

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