PHPackages                             acidf0x/laravel-ez-throttle - 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. acidf0x/laravel-ez-throttle

ActiveLibrary

acidf0x/laravel-ez-throttle
===========================

A simple Laravel Throttle extension

v1.0.0(8y ago)017MITPHPPHP &gt;=7.0

Since Jan 11Pushed 8y agoCompare

[ Source](https://github.com/0xFoxTail/Laravel-EzThrottle)[ Packagist](https://packagist.org/packages/acidf0x/laravel-ez-throttle)[ RSS](/packages/acidf0x-laravel-ez-throttle/feed)WikiDiscussions master Synced 2mo ago

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

Laravel-EzThrottle
==================

[](#laravel-ezthrottle)

A simple Laravel Throttle extension

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

[](#installation)

install using composer:

```
 composer require acidf0x/laravel-ez-throttle
```

Basic Usage
-----------

[](#basic-usage)

Start by creating an `Throttle` instance

```
use AcidF0x\EzThrottle\Throttle;

$throttle = new Throttle();
// or
$throttle = new Throttle($throttleKey , $maxAttempts, $decayMinutes);

// increase hit count
$throttle->hit()

if ($throttle->isBlock()) {
    echo $throttle->getErrorMsg(); // "Too Many Requests. Please try again in 1 minutes"
} else {
    // ...

    if ( ... ) {
        $throttle->clear();
    }

}
```

or use the `EzThrottle` trait if you want

```
use AcidF0x\EzThrottle\Foundation\EzThrottle;

class SomeController extends Controller
{
    use EzThrottle;

    $protected $ThrottleKey = 'LoginThrottle';
    $protected $maxAttempts = '3';
    $protected $decayMinutes = '1';

    public function doLogin()
    {
        //.....

        // increase hit count
        $this->hit()
        if ($this->isBlock()) {
            return $this->getErrorMsg(); // "Too Many Requests. Please try again in 1 minutes"
        } else {
            // ...
            if ( ... ) {
                $this->clear();
            }
        }

        //......
    }
}
```

Customize
---------

[](#customize)

```
php artisan vendor:publish --provider=AcixF0x\Ezthrrotle\EzthrottleServiceProvider
```

Localization
------------

[](#localization)

```
# resources/lang/vendor/ezthrottle/en/error.php

return [
        'sec'=> 'Too Many Requests. Please try again in :sec seconds',
        'min'=> 'Too Many Requests. Please try again in :min minutes',
        'hour'=> 'Too Many Requests. Please try again in :hour hours',
        'days'=> 'Too Many Requests. Please try again in :day days',
];
```

Config
------

[](#config)

```
# config/ezthrottle.php
return [
    'defaultThrottleKey' => 'throttle',
    'defaultDecayMinutes' => '1',
    'defaultMaxAttempts' => '3'
];
```

Todos
-----

[](#todos)

- change Trait Method
- Test and support Variable Laravel Ver. (5.\*)
- Change Composer Dependency

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

5

Last Release

3044d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2e36271e2101817b1eb7f680212a93e21aed375fcad90e995452e3972f6e1e92?d=identicon)[AcidF0x](/maintainers/AcidF0x)

---

Top Contributors

[![0xFoxTail](https://avatars.githubusercontent.com/u/35107271?v=4)](https://github.com/0xFoxTail "0xFoxTail (16 commits)")

---

Tags

laravelthrottle

### Embed Badge

![Health badge](/badges/acidf0x-laravel-ez-throttle/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[namu/wirechat

A Laravel Livewire messaging app for teams with private chats and group conversations.

54324.5k](/packages/namu-wirechat)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)

PHPackages © 2026

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