PHPackages                             rectitude-open/filament-ban-manager - 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. [Security](/categories/security)
4. /
5. rectitude-open/filament-ban-manager

ActiveLibrary[Security](/categories/security)

rectitude-open/filament-ban-manager
===================================

A Ban Manager for Filament

v1.11.0(9mo ago)0491↓100%[2 PRs](https://github.com/rectitude-open/filament-ban-manager/pulls)1MITPHPPHP ^8.1CI passing

Since Apr 28Pushed 4mo agoCompare

[ Source](https://github.com/rectitude-open/filament-ban-manager)[ Packagist](https://packagist.org/packages/rectitude-open/filament-ban-manager)[ Docs](https://github.com/rectitude-open/filament-ban-manager)[ RSS](/packages/rectitude-open-filament-ban-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (22)Used By (1)

[![Filament Ban Manager Banner](./art/Filament%20Ban%20Manager.png)](./art/Filament%20Ban%20Manager.png)

Filament Ban Manager
====================

[](#filament-ban-manager)

[![Latest Version on Packagist](https://camo.githubusercontent.com/871d1d388a1864b275db0101a744cbc48aedcffe92abd9498596913b6fb6fdd4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7265637469747564652d6f70656e2f66696c616d656e742d62616e2d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rectitude-open/filament-ban-manager)[![Tests](https://github.com/rectitude-open/filament-ban-manager/actions/workflows/run-tests.yml/badge.svg)](https://github.com/rectitude-open/filament-ban-manager/actions/workflows/run-tests.yml)[![PHPStan](https://camo.githubusercontent.com/2de44fa415e74513b3ab0978012f8b4bb8e37dafe58e2d27f779705b278f0373/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6c6576656c253230352d627269676874677265656e)](https://phpstan.org/)[![Total Downloads](https://camo.githubusercontent.com/ba065e10bb6b5c4df525d3908990c7d8d5811b72ee1f6da0aa4cb9b23f5eaef3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7265637469747564652d6f70656e2f66696c616d656e742d62616e2d6d616e616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rectitude-open/filament-ban-manager)

Filament Ban Manager is a user-friendly plugin that provides complete ban management (both models and IPs) for your Filament panel, built on top of the [Banhammer](https://github.com/mchev/banhammer) package.

This package is also a standalone part of a CMS project: [FilaPress](https://github.com/rectitude-open/filapress).

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

[](#installation)

You can install the package via composer:

```
composer require rectitude-open/filament-ban-manager
```

You can publish and run the migrations with:

```
php artisan vendor:publish --tag="filament-ban-manager-migrations"
php artisan migrate
```

> Note: The migrations from the Banhammer package have been integrated and optimized in this plugin, so you do not need to publish Banhammer's migrations separately.

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-ban-manager-config"
```

Optionally, you can publish the config file of the Banhammer package:

```
php artisan vendor:publish --provider="Mchev\Banhammer\BanhammerServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
    'filament_resource' => RectitudeOpen\FilamentBanManager\Resources\BanResource::class,
    'model' => RectitudeOpen\FilamentBanManager\Models\Ban::class,
    'navigation_sort' => 0,
    'navigation_icon' => 'heroicon-o-shield-exclamation',
    'datetime_format' => 'Y-m-d H:i:s',
];
```

Optionally, you can publish the translations using

```
php artisan vendor:publish --tag="filament-ban-manager-translations"
```

Usage
-----

[](#usage)

The package provides a Ban resource that allows you to create and delete bans for both models and IP addresses.

To use the resource page provided by this package, you need to register it in your Panel Provider first.

```
namespace App\Providers\Filament;

use RectitudeOpen\FilamentBanManager\FilamentBanManagerPlugin;

class AdminPanelProvider extends PanelProvider
{
    public function panel(Panel $panel): Panel
    {
        return $panel
            ->plugins([
                FilamentBanManagerPlugin::make()
            ]);
    }
}
```

For more advanced ban features, please refer to the documentation of the [Banhammer](https://github.com/mchev/banhammer) package.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Aspirant Zhang](https://github.com/aspirantzhang)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance69

Regular maintenance activity

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~6 days

Recently: every ~24 days

Total

18

Last Release

276d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/06e113a1e04f4cde069f333882f90653a22ce080afa4ac21d1c3d95533b074d5?d=identicon)[aspirantzhang](/maintainers/aspirantzhang)

---

Top Contributors

[![aspirantzhang](https://avatars.githubusercontent.com/u/24559988?v=4)](https://github.com/aspirantzhang "aspirantzhang (85 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (17 commits)")

---

Tags

banfilament-pluginlaravelsecuritylaravelsecurityfilamentban

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/rectitude-open-filament-ban-manager/health.svg)

```
[![Health](https://phpackages.com/badges/rectitude-open-filament-ban-manager/health.svg)](https://phpackages.com/packages/rectitude-open-filament-ban-manager)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[guava/filament-modal-relation-managers

Allows you to embed relation managers inside filament modals.

7565.0k4](/packages/guava-filament-modal-relation-managers)[mradder/filament-logger

Audit logging, activity tracking, exports, alerts, and dashboards for Filament admin panels.

141.1k](/packages/mradder-filament-logger)[tapp/filament-webhook-client

Add a Filament resource and a policy for Spatie Webhook client

1120.2k](/packages/tapp-filament-webhook-client)[jeffersongoncalves/filament-topbar

A simple yet effective Filament plugin that automatically adds a customized topbar to your Filament admin panel. This plugin enhances your Filament panel's user experience by replacing the default topbar component with an improved version that displays navigation and user interface elements in strategic locations.

171.2k](/packages/jeffersongoncalves-filament-topbar)[a2insights/filament-saas

Filament Saas for A2Insights

161.1k](/packages/a2insights-filament-saas)

PHPackages © 2026

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