PHPackages                             jeffersongoncalves/filament-cookie-consent - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. jeffersongoncalves/filament-cookie-consent

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jeffersongoncalves/filament-cookie-consent
==========================================

This Filament package provides a simple and elegant way to implement cookie consent on your website, ensuring compliance with privacy regulations like GDPR and CCPA. It offers a clean and customizable interface, allowing you to easily manage and display cookie consent banners and preferences.

v3.2.1(2mo ago)84.1k↓10.5%2MITPHPPHP ^8.2|^8.3CI passing

Since Mar 2Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/jeffersongoncalves/filament-cookie-consent)[ Packagist](https://packagist.org/packages/jeffersongoncalves/filament-cookie-consent)[ Docs](https://github.com/jeffersongoncalves/filament-cookie-consent)[ GitHub Sponsors](https://github.com/jeffersongoncalves)[ RSS](/packages/jeffersongoncalves-filament-cookie-consent/feed)WikiDiscussions 3.x Synced 1mo ago

READMEChangelog (10)Dependencies (14)Versions (23)Used By (0)

[![Filament Cookie Consent](https://raw.githubusercontent.com/jeffersongoncalves/filament-cookie-consent/3.x/art/jeffersongoncalves-filament-cookie-consent.png)](https://raw.githubusercontent.com/jeffersongoncalves/filament-cookie-consent/3.x/art/jeffersongoncalves-filament-cookie-consent.png)

Filament Cookie Consent
=======================

[](#filament-cookie-consent)

[![Latest Version on Packagist](https://camo.githubusercontent.com/95f2b0a04de53fb91c142fda72c1c002bf05b6f6c0af85d05f3a5e602c54414e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d636f6f6b69652d636f6e73656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-cookie-consent)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/2051039e9ea589cf62ac69d88a2b9c823fd8f57cfd764767a988420eba6125bd/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d636f6f6b69652d636f6e73656e742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d332e78266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jeffersongoncalves/filament-cookie-consent/actions?query=workflow%3A%22Fix+PHP+code+styling%22+branch%3A3.x)[![Total Downloads](https://camo.githubusercontent.com/fb750ed92908acc935fde894a1c92251a6bd7e30c2fbc7c3990b885ee6e6c25a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d636f6f6b69652d636f6e73656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeffersongoncalves/filament-cookie-consent)[![License](https://camo.githubusercontent.com/c8dfa3b0440d18cf1f04e8bbbcf6bcb2f8cdf306343a0a84d37475ec5c6c6219/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6a6566666572736f6e676f6e63616c7665732f66696c616d656e742d636f6f6b69652d636f6e73656e742e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

This Filament package provides a simple and elegant way to implement cookie consent on your website, ensuring compliance with privacy regulations like GDPR and CCPA. It includes a **Settings Page** to manage all cookie consent options directly from your Filament panel.

Compatibility
-------------

[](#compatibility)

Package VersionFilament Version[1.x](https://github.com/jeffersongoncalves/filament-cookie-consent/tree/1.x)3.x[2.x](https://github.com/jeffersongoncalves/filament-cookie-consent/tree/2.x)4.x[3.x](https://github.com/jeffersongoncalves/filament-cookie-consent/tree/3.x)5.xFeatures
--------

[](#features)

- **Automatic Integration**: No need to manually add blade templates - works out of the box with Filament
- **Settings Page**: Manage all cookie consent settings directly from your Filament panel
- **Database-driven Settings**: Uses `spatie/laravel-settings` for persistent, database-backed configuration
- **GDPR &amp; CCPA Compliant**: Ensures your application meets privacy regulation requirements
- **Highly Configurable**: Customize colors, position, theme, and content via the admin panel
- **Responsive Design**: Works perfectly on desktop and mobile devices
- **Multi-language Support**: Easily translatable for international applications

Requirements
------------

[](#requirements)

- PHP 8.2 or higher
- Laravel 11.0 or higher
- Filament 5.0

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

[](#installation)

You can install the package via composer:

```
composer require jeffersongoncalves/filament-cookie-consent:^3.2
```

If you haven't already, publish the Spatie Laravel Settings migration:

```
php artisan vendor:publish --provider="Spatie\LaravelSettings\LaravelSettingsServiceProvider" --tag="migrations"
```

Then publish and run the cookie consent settings migration:

```
php artisan vendor:publish --tag=cookie-consent-settings-migrations
php artisan migrate
```

Plugin Registration
-------------------

[](#plugin-registration)

Register the plugin in your Filament Panel Provider:

```
use JeffersonGoncalves\Filament\CookieConsent\CookieConsentPlugin;

public function panel(Panel $panel): Panel
{
    return $panel
        ->plugins([
            CookieConsentPlugin::make(),
        ]);
}
```

Settings Page
-------------

[](#settings-page)

Once registered, the plugin adds a **Cookie Consent Settings** page to your Filament panel under the "Settings" navigation group. From there you can configure:

- **Assets**: CSS and JavaScript URLs for the cookie consent library
- **Content**: Header, message, button texts, privacy policy URL, link target, and cookie policy text
- **Popup Colors**: Background, text, and link colors
- **Button Colors**: Background, border, and text colors
- **Highlight Colors**: Background, border, and text colors
- **Layout**: Banner position and theme

### Disabling the Settings Page

[](#disabling-the-settings-page)

If you only want the automatic cookie consent integration without the settings page:

```
CookieConsentPlugin::make()
    ->settingsPage(false),
```

How it works
------------

[](#how-it-works)

This package extends the [jeffersongoncalves/laravel-cookie-consent](https://github.com/jeffersongoncalves/laravel-cookie-consent) package specifically for Filament panels. It automatically registers render hooks that inject the cookie consent templates into your Filament panel pages:

- Cookie consent scripts are automatically added to the `` section
- Cookie consent banner is automatically added to the end of the `` section

No manual template inclusion is required when using this Filament package.

### Screenshots

[](#screenshots)

Screenshots using this package in the admin panel provider.

Top LeftTop Right[![Top Left](screenshots/cookie-consent-top-left.png)](screenshots/cookie-consent-top-left.png)[![Top Right](screenshots/cookie-consent-top-right.png)](screenshots/cookie-consent-top-right.png)**Bottom Left****Bottom Right**[![Bottom Left](screenshots/cookie-consent-bottom-left.png)](screenshots/cookie-consent-bottom-left.png)[![Bottom Right](screenshots/cookie-consent-bottom-right.png)](screenshots/cookie-consent-bottom-right.png)Testing
-------

[](#testing)

```
composer test
```

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)

- [Jefferson Goncalves](https://github.com/jeffersongoncalves)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance87

Actively maintained with recent releases

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 78.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 ~18 days

Recently: every ~4 days

Total

22

Last Release

59d ago

Major Versions

v1.2.0 → v3.2.02026-02-23

v1.3.0 → 3.2.12026-02-24

v2.3.1 → v3.2.12026-03-04

1.x-dev → 2.x-dev2026-03-06

2.x-dev → 3.x-dev2026-03-21

PHP version history (2 changes)v1.0.0PHP ^8.2|^8.3

v1.2.0PHP ^8.1|^8.2|^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/411493?v=4)[Jefferson Gonçalves](/maintainers/jeffersongoncalves)[@jeffersongoncalves](https://github.com/jeffersongoncalves)

---

Top Contributors

[![jeffersongoncalves](https://avatars.githubusercontent.com/u/411493?v=4)](https://github.com/jeffersongoncalves "jeffersongoncalves (48 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (9 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (1 commits)")

---

Tags

ccpacookie-consentfilamentfilament-plugingdprlaravelphpsettingsspatie-laravel-settingslaravelSettingsfilamentfilament-pluginjeffersongoncalvesgdprcookie-consentCCPA

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/jeffersongoncalves-filament-cookie-consent/health.svg)

```
[![Health](https://phpackages.com/badges/jeffersongoncalves-filament-cookie-consent/health.svg)](https://phpackages.com/packages/jeffersongoncalves-filament-cookie-consent)
```

###  Alternatives

[schmeits/filament-character-counter

This is a Filament character counter TextField and Textarea form field for Filament v4 and v5

33184.7k6](/packages/schmeits-filament-character-counter)[bezhansalleh/filament-google-analytics

Google Analytics integration for FilamentPHP

205144.8k5](/packages/bezhansalleh-filament-google-analytics)[jibaymcs/filament-tour

Bring the power of DriverJs to your Filament panels and start a tour !

12247.8k](/packages/jibaymcs-filament-tour)[howdu/filament-record-switcher

Resource level navigation with search

1512.5k](/packages/howdu-filament-record-switcher)

PHPackages © 2026

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