2017 © Pedro Peláez
 

symfony-bundle cookie-consent-bundle

Add a banner allowing the user to consent to your symfony app's cookie policy

image

uam/cookie-consent-bundle

Add a banner allowing the user to consent to your symfony app's cookie policy

  • Wednesday, April 26, 2017
  • by opichon
  • Repository
  • 1 Watchers
  • 1 Stars
  • 72 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 4 % Grown

The README.md

UAMCookieConsentBundle

A symfony 2 bundale that provides a convenient way to allow the user to consent to your symfony app's cookie policy., (*1)

Installation

Add the bundle to your project's composer.json:, (*2)

{
    "require": {
        "uam/cookie-consent-bundle": "^1.0",
        ...
    }
}

Run composer install or composer update to install the bundle:, (*3)

``` bash $ php composer.phar update, (*4)



Enable the bundle in the app's kernel: ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new UAM\CookieConsent\CookieConsentBundle\UAMCookieConsentBundle(), ); }

If your composer.json does not include the post-install or post-update installAssets script handler, then run the following command:, (*5)

``` bash $ php app/console assets:install, (*6)


or ``` bash $ php app/console assets:install --symlink

Usage

``` twig, (*7)

base.html.twig

{% stylesheets filter="cssrewrite" 'bundles/uamcookieconsent/css/cookie-consent.css' %} {% endstylesheets %}, (*8)

{% javascripts 'bundles/uamcookieconsent/js/cookie-consent.js' %} {% endjavascripts %}, (*9)


If you use assetic, you need to declare the UAMCookieConsentBundle in your config file's `assetic` section. ``` twig # base.html.twig {% stylesheets filter="cssrewrite" '@uam_cookie_consent_css' %} <link href="{{ asset_url }}" type="text/css" rel="stylesheet" media="screen" /> {% endstylesheets %} {% javascripts '@uam_cookie_consent_js' %} {% endjavascripts %}

Licence

This bundle is licensed under the MIT license., (*10)

The dataTables jquery plugin is licensed under the MIT license., (*11)

This bundle is copyright United Asian Management Limited., (*12)

The dataTables jquery plugin is copyright Allan Jardine (www.sprymedia.co.uk)., (*13)

All rights reserved by their respective copyright holders., (*14)

The Versions

26/04 2017

dev-master

9999999-dev https://github.com/opichon/cookie-consent-bundle

Add a banner allowing the user to consent to your symfony app's cookie policy

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig bundle symfony eu cookie policy

26/04 2017

1.0.6

1.0.6.0 https://github.com/opichon/cookie-consent-bundle

Add a banner allowing the user to consent to your symfony app's cookie policy

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig bundle symfony eu cookie policy

25/04 2017

1.0.5

1.0.5.0 https://github.com/opichon/cookie-consent-bundle

Add a banner allowing the user to consent to your symfony app's cookie policy

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig bundle symfony eu cookie policy

25/04 2017

1.0.4

1.0.4.0 https://github.com/opichon/cookie-consent-bundle

Add a banner allowing the user to consent to your symfony app's cookie policy

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig bundle symfony eu cookie policy

24/04 2017

1.0.3

1.0.3.0 https://github.com/opichon/cookie-consent-bundle

Add a banner allowing the user to consent to your symfony app's cookie policy

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig bundle symfony eu cookie policy

23/04 2017

1.0.2

1.0.2.0 https://github.com/opichon/cookie-consent-bundle

Add a banner allowing the user to consent to your symfony app's cookie policy

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig bundle symfony eu cookie policy

23/04 2017

1.0.1

1.0.1.0 https://github.com/opichon/cookie-consent-bundle

Add a banner allowing the user to consent to your symfony app's cookie policy

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig bundle symfony eu cookie policy

23/04 2017

1.0.0

1.0.0.0 https://github.com/opichon/cookie-consent-bundle

Add a banner allowing the user to consent to your symfony app's cookie policy

  Sources   Download

MIT

The Requires

 

by Olivier Pichon

twig bundle symfony eu cookie policy