juhe-it-solutions / contao-consent-bundle
Consent banner and settings for Contao 5.7 and 6: consent groups, blocking of scripts and iframes until consent, click-to-load placeholders, pseudonymous consent log.
Package info
github.com/jochi44/contao-consent-bundle
Type:contao-bundle
pkg:composer/juhe-it-solutions/contao-consent-bundle
Requires
- php: ^8.3
- contao/core-bundle: ^5.7 || ^6.0
- symfony/polyfill-php84: ^1.31
- symfony/rate-limiter: ^7.3 || ^8.0
Requires (Dev)
- contao/manager-plugin: ^2.0
- phpunit/phpunit: ^11.5 || ^12.0
Suggests
None
Provides
None
Conflicts
- contao/manager-plugin: <2.0 || >=3.0
Replaces
None
This package is auto-updated.
Last update: 2026-11-11 11:37:43 UTC
README
Consent banner for Contao 5.7 and 6 by JUHE IT-solutions. It asks visitors before any optional service loads, blocks iframes and external scripts on the server until consent is given, and keeps a consent log without personal data.
Requirements
PHP 8.3 or newer, Contao 5.7 or 6.0.
Installation
composer require juhe-it-solutions/contao-consent-bundle
Then update the database (Contao Manager or contao:migrate), create a
banner under "System > Consent" and select it in the root page. In the
banner's group list, "Notwendige Gruppe anlegen" adds the essential group and
the service that describes the stored choice. Add the optional groups and
services (or the shipped provider presets) yourself.
To update, update the package and the database the same way and clear the
cache. Read CHANGELOG.md first when the website overrides templates.
Documentation
- Installation and updating
- Banner and settings: card or bar, settings dialog, openers, privacy signals, withdrawal
- Blocking and services: server-side blocking, placeholders, code after consent, provider presets
- Consent log, CSP and cache
- Accessibility
- Storage
- JavaScript API
- Styling and templates
- Translations
- Testing
License
LGPL-3.0-or-later, the license Contao itself uses. See LICENSE.