rampeur / cookie-consent-bundle
Symfony 4 Bundle for the Cookie Consent Plugin.
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: ~5.6|~7.0
- symfony/config: ~2.8|~3.0|~4.0
- symfony/dependency-injection: ~2.8|~3.0|~4.0
- symfony/framework-bundle: ~2.8|~3.0|~4.0
- symfony/http-kernel: ~2.8|~3.0|~4.0
- symfony/translation: ~2.8|~3.0|~4.0
- symfony/twig-bundle: ~2.8|~3.0|~4.0
- twig/twig: ~1.34|~2.0
This package is auto-updated.
Last update: 2025-03-23 09:29:02 UTC
README
Symfony Bundle for the popular Cookie Consent plugin.
Ce projet est un fork de Cookie Consent Bundle pour Symfony4 par Shapecode
Install
Via Composer
$ composer require rampeur/cookie-consent-bundle
Enable the bundle in your kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Rampeur\Bundle\CookieConsentBundle\RampeurCookieConsentBundle(), ); }
Usage
Configure the bundle:
rampeur_cookie_consent: // url to your privacy policy policy_url: http://example.com/privacy // default layout options layout: position: top static: false theme: edgeless palette: popup: background: #252e39 text: #ffffff button: background: #14a7d0 text: #ffffff
Note: Translations are in RampeurCookieConsent.fr
domain.
Use the cookie_consent
method in your Twig template:
{{ cookie_consent() }}
License
The MIT License (MIT). Please see License File for more information.