2017 © Pedro Peláez
 

symfony-bundle cookie-consent-bundle

Symfony Bundle for the Cookie Consent Plugin.

image

shapecode/cookie-consent-bundle

Symfony Bundle for the Cookie Consent Plugin.

  • Friday, June 1, 2018
  • by Nicklog
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 50 % Grown

The README.md

Shapecode Cookie Consent Bundle

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Symfony Bundle for the popular Cookie Consent plugin., (*2)

Install

Via Composer, (*3)

``` bash $ composer require shapecode/cookie-consent-bundle, (*4)


Enable the bundle in your kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Shapecode\Bundle\CookieConsentBundle\ShapecodeCookieConsentBundle(), ); }

Usage

Configure the bundle:, (*5)

``` yaml shapecode_cookie_consent: // url to your privacy policy policy_url: http://example.com/privacy, (*6)

// default layout options
layout:
    position: top  
    static: false
    theme: edgeless
    palette:
        popup:
            background: #252e39
            text: #ffffff
        button:
            background: #14a7d0
            text: #ffffff

```, (*7)

Note: Translations are in ShapecodeCookieConsent.de domain., (*8)

Use the cookie_consent method in your Twig template: {{ cookie_consent() }}, (*9)

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions