indigophp / cookie-consent-bundle
Symfony Bundle for the popular Cookie Consent plugin
Installs: 11 705
Dependents: 0
Suggesters: 0
Security: 0
Stars: 15
Watchers: 3
Forks: 1
Open Issues: 4
Type:symfony-bundle
Requires
- php: >=5.4
- symfony/framework-bundle: ^2.7|^3.0
Requires (Dev)
- matthiasnoback/symfony-config-test: ^1.4
- matthiasnoback/symfony-dependency-injection-test: ^0.7.6
- phpunit/phpunit: ^4.4
- symfony/symfony: ^2.7|^3.0
This package is auto-updated.
Last update: 2021-11-24 09:10:03 UTC
README
Symfony Bundle for the popular Cookie Consent plugin.
Install
Via Composer
$ composer require indigophp/cookie-consent-bundle
Enable the bundle in your kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Indigo\Bundle\CookieConsentBundle\IndigoCookieConsentBundle(), ); }
Usage
Add Cookie Consent to your website.
Configure the bundle:
indigo_cookie_consent: options: # any options you would pass to the plugins (except labels: message, dismiss, learnMore) # see https://silktide.com/tools/cookie-consent/docs/installation script: false # You can turn script off or pass a script location (eg. to use a specific version)
Note: labels are automatically translated. Translations are in IndigoCookieConsentBundle
domain (PRs welcome).
Use the cookie_consent_render
method in your Twig template:
{{ cookie_consent_render() }}
Testing
$ composer test
Contributing
Please see CONTRIBUTING and CONDUCT for details.
Security
If you discover any security related issues, please contact us at security@indigophp.com.
Credits
Many thanks to David Buchmann for helping me with my First Symfony Bundle (tm).
License
The MIT License (MIT). Please see License File for more information.