shapecode / cookie-consent-bundle
Symfony Bundle for the Cookie Consent Plugin.
Installs: 753
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 2
Type:symfony-bundle
Requires
- php: ~7.4
- symfony/config: ~4.4|~5.0
- symfony/dependency-injection: ~4.4|~5.0
- symfony/framework-bundle: ~4.4|~5.0
- symfony/http-kernel: ~4.4|~5.0
- symfony/translation: ~4.4|~5.0
- symfony/twig-bundle: ~4.4|~5.0
- twig/twig: ~2.0|~3.0
Requires (Dev)
- doctrine/coding-standard: ^8.1
- icanhazstring/composer-unused: ~0.7
- maglnet/composer-require-checker: ^2.0
- phpstan/phpstan: ~0.12
- phpstan/phpstan-deprecation-rules: ~0.12
- phpstan/phpstan-phpunit: ~0.12
- phpstan/phpstan-strict-rules: ~0.12
- phpunit/phpunit: ^9.4
- roave/security-advisories: dev-master
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2022-09-30 15:40:59 UTC
README
Symfony Bundle for the popular Cookie Consent plugin.
Install
Via Composer
$ composer require shapecode/cookie-consent-bundle
Enable the bundle in your kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Shapecode\Bundle\CookieConsentBundle\ShapecodeCookieConsentBundle(), ); }
Usage
Configure the bundle:
shapecode_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 ShapecodeCookieConsent.de
domain.
Use the cookie_consent
method in your Twig template:
{{ cookie_consent() }}
License
The MIT License (MIT). Please see License File for more information.