zigr / connectholland_cookie-consent-bundle-fork
Symfony bundle for implementing Cookie Consent to comply to AVG/GDPR. Based on https://github.com/Harborn-digital/cookie-consent-bundle and adapted to meet symfony 6.4 requirements.
Installs: 66
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 22
Type:symfony-bundle
Requires
- php: ^7.2 || ^8.0.2
- doctrine/doctrine-bundle: ^1.10 || ^2.0
- doctrine/orm: ^2.5
- symfony/asset: ^3.4 || ^4.2 || ^5.0 || ^6.0
- symfony/dependency-injection: ^3.4 || ^4.2 || ^5.0 || ^6.0
- symfony/doctrine-bridge: ^3.4 || ^4.2 || ^5.0 || ^6.0
- symfony/expression-language: ^3.4 || ^4.2 || ^5.0 || ^6.0
- symfony/form: ^3.4 || ^4.2 || ^5.0 || ^6.0
- symfony/framework-bundle: ^3.4 || ^4.2 || ^5.0 || ^6.0
- symfony/http-foundation: ^3.4 || ^4.2 || ^5.0 || ^6.0
- symfony/templating: ^3.4 || ^4.2 || ^5.0 || ^6.0
- symfony/translation: ^3.4 || ^4.2 || ^5.0 || ^6.0
- symfony/twig-bridge: ^3.4 || ^4.2 || ^5.0 || ^6.0
- symfony/twig-bundle: ^3.4 || ^4.2 || ^5.0 || ^6.0
- twig/twig: ^2.6 || ^3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.14
- phpunit/phpunit: ^9.5
- symfony/yaml: ^3.4 || ^4.2 || ^5.0 || ^6.0
This package is auto-updated.
Last update: 2025-04-07 04:21:09 UTC
README
Based on Harborn-digital Cookie Consent Bundle and adapted to meet Symfony 6.4 requirements. As well as PHP Unit 9 testing
Installation
Step 1: Download using composer
In a Symfony application run this command to install and integrate Cookie Consent bundle in your application:
composer require zigr/connectholland_cookie-consent-bundle-fork
Step 2: Go futher on Original Bundle Installation Page
Step 3:
There should be the following files:
./config/packages/ch_cookie_consent.yaml As per configuration after Step 2 above.
./config/bundles.php
... ConnectHolland\CookieConsentBundle\CHCookieConsentBundle::class => ['all' => true],
./config/packages/framework.yaml:
framework: annotations: false
config/routes/ch_cookie_consent.yaml
ch_cookie_consent: resource: "@CHCookieConsentBundle/Resources/config/routing.yaml"
Step 4(optional):
If you choose to log cookie consent to db when configuring Step 2, then
./bin/console doctrine:schema:update --complete --dump-sql
and perform migration for log table creation.