PHPackages                             ernestdefoe/advanced-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. ernestdefoe/advanced-cookie-consent

ActiveFlarum-extension[Utility &amp; Helpers](/categories/utility)

ernestdefoe/advanced-cookie-consent
===================================

Advanced Cookie Consent for Flarum 2 — a GDPR/ePrivacy-style cookie banner with granular, admin-defined consent categories, per-category script gating (third-party scripts load only after consent), a Categories/Services privacy-settings modal, consent versioning and a reopen-anytime control.

1.0.1(today)00MITTypeScriptPHP ^8.3CI passing

Since Jun 9Pushed todayCompare

[ Source](https://github.com/ernestdefoe/advanced-cookie-consent)[ Packagist](https://packagist.org/packages/ernestdefoe/advanced-cookie-consent)[ Docs](https://github.com/ernestdefoe/advanced-cookie-consent)[ RSS](/packages/ernestdefoe-advanced-cookie-consent/feed)WikiDiscussions main Synced today

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

Advanced Cookie Consent
=======================

[](#advanced-cookie-consent)

A GDPR / ePrivacy-style **cookie consent** extension for **Flarum 2**. Free and MIT-licensed.

Shows a clean cookie notice with **Accept / Reject / Customize**, and a granular **Privacy Settings** dialog with consent categories and a per-service transparency view — and, crucially, it can **gate third-party scripts so they only load after consent**.

Features
--------

[](#features)

- **Cookie notice banner** (bottom bar, corner box, or centered) with Accept, Reject and Customize, plus your Privacy Notice link.
- **Granular Privacy Settings modal** — per-category toggles (Necessary is always on) with expandable detail, plus a **Services** tab listing the third-party services and cookies in each category.
- **Script gating** — two ways to ensure tags only run after consent:
    - Paste scripts per category in the admin panel; they load when that category is accepted.
    - Mark any script on the page as `…` and it activates on consent.
- **Admin-defined categories** (rename, add, remove, mark required) — defaults: Necessary, Performance, Functional, Marketing.
- **Consent versioning** — bump the version to re-prompt everyone when your policy changes.
- **Do Not Track / Global Privacy Control** — optionally auto-reject non-essential categories when the browser sends an opt-out signal.
- **Fully stylable** — layout (bottom bar / corner box / centered), light / dark / auto theme, custom accent colour, box width and corner radius, so it fits any site and screen size.
- **Reopen anytime** — a "Cookie settings" link, plus a JS API so a theme can place its own trigger.
- Fully translatable; consent is stored locally (no personal data leaves the browser).

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

[](#screenshots)

Cookie noticePrivacy settings[![Cookie notice banner](screenshots/banner.png)](screenshots/banner.png)[![Privacy settings modal](screenshots/settings.png)](screenshots/settings.png)Fully **stylable** so it fits any forum — choose the layout (bottom bar / corner box / centered), a light/dark/auto theme, your own accent colour, box width and corner radius:

[![Styled corner box, dark theme, custom accent](screenshots/styled.png)](screenshots/styled.png)

JavaScript API
--------------

[](#javascript-api)

```
window.cookieConsent.open();             // re-open the settings dialog
window.cookieConsent.accepted('marketing'); // boolean
window.cookieConsent.onChange((c) => { /* … */ });
window.cookieConsent.acceptAll();
window.cookieConsent.rejectAll();
```

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

[](#installation)

```
composer require ernestdefoe/advanced-cookie-consent
php flarum cache:clear
```

Then open **Admin → Advanced Cookie Consent** to set your text, categories and scripts.

License
-------

[](#license)

[MIT](LICENSE)

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

2

Last Release

0d ago

### Community

Maintainers

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

---

Top Contributors

[![ernestdefoe](https://avatars.githubusercontent.com/u/24905286?v=4)](https://github.com/ernestdefoe "ernestdefoe (2 commits)")

---

Tags

cookieflarumgdprprivacyconsentflarum-extension

### Embed Badge

![Health badge](/badges/ernestdefoe-advanced-cookie-consent/health.svg)

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

###  Alternatives

[statikbe/laravel-cookie-consent

Cookie consent modal for EU

217416.5k](/packages/statikbe-laravel-cookie-consent)[flarum-lang/russian

Russian language pack for Flarum.

12127.5k](/packages/flarum-lang-russian)[codingfreaks/cf-cookiemanager

Manage cookies, scripts, and GDPR compliance on your Typo3 website with CodingFreaks Typo3 Cookie Manager. Customize cookie banners, streamline workflow, and enhance user experience. Ensure GDPR compliance and take control of cookie management with our Typo3 cookie management extension. Visit the official Typo3 Documentation page to learn more.

1829.2k](/packages/codingfreaks-cf-cookiemanager)[flarum/gdpr

Features for GDPR, PII management

1433.4k20](/packages/flarum-gdpr)

PHPackages © 2026

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