PHPackages                             jonassiewertsen/statamic-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. jonassiewertsen/statamic-cookie-consent

ActiveStatamic-addon[Utility &amp; Helpers](/categories/utility)

jonassiewertsen/statamic-cookie-consent
=======================================

A Statamic cookie consent wrapper for the Spatie package 'laravel-cookie-consent'

v1.0-beta.4(4y ago)1371[1 issues](https://github.com/jonassiewertsen/statamic-cookie-consent/issues)MITPHPPHP ^7.4 || ^8.0CI failing

Since Mar 20Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jonassiewertsen/statamic-cookie-consent)[ Packagist](https://packagist.org/packages/jonassiewertsen/statamic-cookie-consent)[ RSS](/packages/jonassiewertsen-statamic-cookie-consent/feed)WikiDiscussions master Synced 1w ago

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

Statamic Cookie Consent
=======================

[](#statamic-cookie-consent)

[![Statamic 3.0+](https://camo.githubusercontent.com/93c61a311851e398f5663226aca5d307d91ef898067c6b294110a785d6c2e735/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d332e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/93c61a311851e398f5663226aca5d307d91ef898067c6b294110a785d6c2e735/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d332e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)[![Latest Version on Packagist](https://camo.githubusercontent.com/7ca3e2cf250a57b67b9da0341d9a4919e9bae1ff8bc908731ae5513d2261e44d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f6e61737369657765727473656e2f73746174616d69632d636f6f6b69652d636f6e73656e742e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/jonassiewertsen/statamic-cookie-consent)

This Package is basically a wrapper for the [Laravel Cookie Consent Package from Spatie.](https://github.com/spatie/laravel-cookie-consent)

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

[](#installation)

Pull in your package with composer

```
composer require jonassiewertsen/statamic-cookie-consent
```

Styling
-------

[](#styling)

Remember to write some nice CSS to style the consent banner.

Those are the default classes

```

        Your experience on this site will be improved by allowing cookies.

        Allow cookies

```

Settings
--------

[](#settings)

### Disabling the cookie consent

[](#disabling-the-cookie-consent)

You can disable the package in your .env file

```
COOKIE_CONSENT_ENABLED=false
```

### Publishing the lang files

[](#publishing-the-lang-files)

```
php artisan vendor:publish --provider="Spatie\CookieConsent\CookieConsentServiceProvider" --tag="lang"
```

### Publishing the view

[](#publishing-the-view)

```
php artisan vendor:publish --provider="Spatie\CookieConsent\CookieConsentServiceProvider" --tag="views"
```

### Publishing the config file

[](#publishing-the-config-file)

```
php artisan vendor:publish --provider="Spatie\CookieConsent\CookieConsentServiceProvider" --tag="config"
```

License
=======

[](#license)

This Package / Addon is open source. Feel free to contribute or use it however you like!

###  Health Score

20

—

LowBetter than 12% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity51

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 ~175 days

Total

4

Last Release

1808d ago

PHP version history (2 changes)1.0-beta.1PHP ^7.4

v1.0-beta.4PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/38906163?v=4)[Jonas Siewertsen](/maintainers/jonassiewertsen)[@jonassiewertsen](https://github.com/jonassiewertsen)

---

Top Contributors

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

---

Tags

cookieaddonstatamicconsent

### Embed Badge

![Health badge](/badges/jonassiewertsen-statamic-cookie-consent/health.svg)

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

###  Alternatives

[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

23122.2k16](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

15134.1k](/packages/withcandour-aardvark-seo)[reachweb/statamic-livewire-filters

Livewire filters for Statamic collections.

1714.1k](/packages/reachweb-statamic-livewire-filters)[justkidding96/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

157.2k](/packages/justkidding96-aardvark-seo)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)

PHPackages © 2026

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