PHPackages                             edenlife/superban - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. edenlife/superban

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

edenlife/superban
=================

 This package will add the ability to ban a client completely for a period of time

v1.1.1(2y ago)016MITPHPPHP ^8.1

Since Dec 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Antonyodu/EdenLifeSuperBan)[ Packagist](https://packagist.org/packages/edenlife/superban)[ Docs](https://github.com/Antonyodu/EdenLifeSuperBan)[ RSS](/packages/edenlife-superban/feed)WikiDiscussions main Synced today

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

Superban Laravel Package
========================

[](#superban-laravel-package)

Overview
--------

[](#overview)

Superban is a Laravel package designed to enhance your application's rate-limiting capabilities by providing the ability to ban clients completely for a specified period of time. This package integrates seamlessly with Laravel's built-in rate limiting features and allows you to configure different cache drivers such as Redis, Database, etc.

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

[](#installation)

To get started with Superban, simply install the package through Composer:

```
composer require edenlife/superban

```

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

[](#configuration)

In the `superban.php` configuration file, you can:

1. **Specify Cache Driver:**
    - Choose the cache driver that Superban should use (e.g., Redis, Database).
2. **Set Ban Threshold:**
    - Configure the number of requests after which a client will be banned.
3. **Define Ban Duration:**
    - Specify the duration of the ban for a client after reaching the threshold.
4. **Choose Ban Criteria:**
    - Decide whether to ban by user ID, IP address, email, or a combination of these.
5. **Apply Bans Globally or Per Route:**
    - Choose whether to apply bans globally for all routes or specify particular routes.

Usage
-----

[](#usage)

To utilize Superban in your Laravel application, add the Superban middleware to the desired routes or apply it globally in your `App\Http\Kernel`:

```
protected$middleware = [
     // ... other middleware
     \SuperBanHttp\Middleware\SuperbanMiddleware::class,
     ];
```

### Example Middleware Usage

[](#example-middleware-usage)

```
Route::get('/protected-route', 'YourController@protectedAction')->middleware('superban:10,2,10');
```

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

[](#contributing)

If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on the [GitHub repository](https://github.com/Antonyodu/superban).

License
-------

[](#license)

Superban is open-sourced software licensed under the MIT License.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

3

Last Release

924d ago

### Community

Maintainers

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

---

Top Contributors

[![Antonyodu](https://avatars.githubusercontent.com/u/25412965?v=4)](https://github.com/Antonyodu "Antonyodu (10 commits)")

---

Tags

limiterSuperban

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/edenlife-superban/health.svg)

```
[![Health](https://phpackages.com/badges/edenlife-superban/health.svg)](https://phpackages.com/packages/edenlife-superban)
```

###  Alternatives

[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

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