Skip to content

Repository files navigation

Shapecode Cookie Consent Bundle

Latest Stable VersionTotal DownloadsLatest Unstable VersionLicense

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.phppublicfunctionregisterBundles()
{
$bundles = array(
// ...newShapecode\Bundle\CookieConsentBundle\ShapecodeCookieConsentBundle(),
);
}

Usage

Configure the bundle:

shapecode_cookie_consent:
// url to your privacy policy policy_url: http://example.com/privacy// default layout optionslayout:
position: top static: falsetheme: edgelesspalette:
popup:
background: #252e39text: #ffffffbutton:
background: #14a7d0text: #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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages