moinframe / kirby-cookie-consent
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
1.0.0
2026-11-24 12:04 UTC
Requires
- php: >=8.1
- getkirby/cms: ^4.0 || ^5.0
- getkirby/composer-installer: ^1.2
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
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>