PHPackages                             marcogermani87/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. marcogermani87/filament-cookie-consent

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

marcogermani87/filament-cookie-consent
======================================

Easy cookie consent integrations for Filament

v1.2.0(5mo ago)1917.0k↓33.3%4[2 PRs](https://github.com/marcogermani87/filament-cookie-consent/pulls)MITPHPPHP ^8.1CI passing

Since May 12Pushed 1mo ago1 watchersCompare

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

READMEChangelog (7)Dependencies (13)Versions (10)Used By (0)

[![](https://camo.githubusercontent.com/d1474d1788d5d11a221ed0e83cff384b5278e6381ea8d80b84d6179b71e0cdf9/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f66696c616d656e742d636f6f6b69652d636f6e73656e742e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6d6172636f6765726d616e69383725324666696c616d656e742d636f6f6b69652d636f6e73656e74267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d456173792b636f6f6b69652b636f6e73656e742b696e746567726174696f6e732b666f722b46696c616d656e74266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)](https://camo.githubusercontent.com/d1474d1788d5d11a221ed0e83cff384b5278e6381ea8d80b84d6179b71e0cdf9/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f66696c616d656e742d636f6f6b69652d636f6e73656e742e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6d6172636f6765726d616e69383725324666696c616d656e742d636f6f6b69652d636f6e73656e74267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d456173792b636f6f6b69652b636f6e73656e742b696e746567726174696f6e732b666f722b46696c616d656e74266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4f5dd1ddafd57829b6a59aa03d2e22e8a531868078b8b85ff3a09dcd34aaffb6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6172636f6765726d616e6938372f66696c616d656e742d636f6f6b69652d636f6e73656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marcogermani87/filament-cookie-consent)[![GitHub Tests Action Status](https://camo.githubusercontent.com/06044bbb0e699b92bc52455bac078db09c3321431cf5abfe967b2ae8592cf002/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6172636f6765726d616e6938372f66696c616d656e742d636f6f6b69652d636f6e73656e742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/marcogermani87/filament-cookie-consent/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/8ae8b0f8a2bb37407b994666028901e500fafe56b11163b4f468e14838c8e748/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d6172636f6765726d616e6938372f66696c616d656e742d636f6f6b69652d636f6e73656e742f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/:vendor_slug/filament-cookie-consent/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/5a4abf8217a92ace3db66c5e1dd1e900fb578ac2c3d2a939a214d56fb6371939/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6172636f6765726d616e6938372f66696c616d656e742d636f6f6b69652d636f6e73656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/marcogermani87/filament-cookie-consent)

A package to easily include cookie consent in [Filament](https://filamentphp.com).

This project is based on [spatie/laravel-cookie-consent](https://github.com/spatie/laravel-cookie-consent) package.

Version Compatibility
---------------------

[](#version-compatibility)

PluginFilamentLaravelPHP1.x3.x10.x8.x1.x3.x11.x | 12.x8.2 | 8.3 | 8.4Installation
------------

[](#installation)

You can install the package via composer:

```
composer require marcogermani87/filament-cookie-consent
```

You can publish the config file with:

```
php artisan vendor:publish --tag="filament-cookie-consent-config"
```

This is the contents of the published config file:

```
return [
    // 'start', 'end'
    'position' => 'start',

    'consent_button' => [
        'size' => 'sm',
        'color' => 'warning',
    ],

    'privacy_policy_button' => [
        'enabled' => true,
        'href' => '/privacy-policy',
        'size' => 'sm',
        'color' => 'gray',
        'target' => '_blank',
    ],
];
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="filament-cookie-consent-views"
```

Usage
-----

[](#usage)

Register the plugin through your panel service provider:

```
->plugin(\MarcoGermani87\FilamentCookieConsent\FilamentCookieConsent::make())
```

Testing
-------

[](#testing)

```
composer test
```

Screenshots
-----------

[](#screenshots)

[![](https://raw.githubusercontent.com/marcogermani87/filament-cookie-consent/main/screenshots/bottom.png)](https://raw.githubusercontent.com/marcogermani87/filament-cookie-consent/main/screenshots/bottom.png)

[![](https://raw.githubusercontent.com/marcogermani87/filament-cookie-consent/main/screenshots/top.png)](https://raw.githubusercontent.com/marcogermani87/filament-cookie-consent/main/screenshots/top.png)

Changelog
---------

[](#changelog)

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

Credits
-------

[](#credits)

- [Marco Germani](https://github.com/marcogermani87)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance81

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.1% 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 ~88 days

Recently: every ~82 days

Total

8

Last Release

117d ago

Major Versions

v1.2.0 → 2.0.0.x-dev2026-01-21

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ce977c0b2a8b5671f3a9bc015b9f35520681dc278870e7ea04b233269f07a33?d=identicon)[marcogermani87](/maintainers/marcogermani87)

---

Top Contributors

[![marcogermani87](https://avatars.githubusercontent.com/u/998645?v=4)](https://github.com/marcogermani87 "marcogermani87 (68 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")[![gboquizosanchez](https://avatars.githubusercontent.com/u/20032391?v=4)](https://github.com/gboquizosanchez "gboquizosanchez (1 commits)")[![panservicesas](https://avatars.githubusercontent.com/u/154348101?v=4)](https://github.com/panservicesas "panservicesas (1 commits)")

---

Tags

cookie-consentfilamentlaravelphpphplaravelcookiefilamentmarcogermani87

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[pboivin/filament-peek

Full-screen page preview modal for Filament

253319.6k12](/packages/pboivin-filament-peek)[tapp/filament-google-autocomplete-field

Filament plugin that provides a Google Autocomplete field

3098.1k](/packages/tapp-filament-google-autocomplete-field)[dotswan/filament-map-picker

Easily pick and retrieve geo-coordinates using a map-based interface in your Filament applications.

124139.3k2](/packages/dotswan-filament-map-picker)[creagia/filament-code-field

A Filamentphp input field to edit or view code data.

58289.3k3](/packages/creagia-filament-code-field)[swisnl/filament-backgrounds

Beautiful backgrounds for Filament auth pages

54149.2k6](/packages/swisnl-filament-backgrounds)[jibaymcs/filament-tour

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

12247.8k](/packages/jibaymcs-filament-tour)

PHPackages © 2026

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