Search by

moinframe / kirby-cookie-consent

moinframe

Cookie Consent is a customizable, accessible privacy consent plugin for Kirby CMS.

Package info

github.com/moinframe/kirby-cookie-consent

Language:JavaScript

Type:kirby-plugin

pkg:composer/moinframe/kirby-cookie-consent

Statistics

Installs: 6

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 0

1.0.0 2026-11-24 12:04 UTC

This package is auto-updated.

Last update: 2026-11-24 12:04:54 UTC


README

A customizable, accessible cookie consent banner for Kirby CMS. Editors manage categories and policies in the Panel, visitors choose what they agree to, and your site loads scripts based on that choice.

Requirements

  • Kirby 4 or 5
  • PHP 8.1+ (Kirby 5 requires PHP 8.2+)

For Kirby 3, use version 0.2.x.

Quick start

composer require moinframe/kirby-cookie-consent

Add the section to site/blueprints/site.yml:

sections:
  cookieconsent: sections/cookie-consent

Add the snippet to your footer:

<?php snippet('cookie-consent') ?>

Load your tools only with consent:

<script type="text/plain" data-cookie-consent="matomo" src="https://matomo.example.com/matomo.js"></script>

Documentation

  1. Installation
  2. Configuration
  3. JavaScript API
  4. Translations
  5. Styling
  6. Upgrading from 0.x

License

MIT