cinghie/yii2-cookie-consent Yii2 Cookie Consent to alerting users about the use of cookies on your Yii2 website.

yii2cookieyii2cookielawyii2cookieconsentyii2eucookieconsent

Yii2 Cookie Consent

Yii2 Cookie Consent to alerting users about the use of cookies on your Yii2 website, using Cookie Consent Script: https://github.com/insites/cookieconsent/tree/2.0.0

Installation Using Composer

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require cinghie/yii2-cookie-consent "^1.5.0"

or add in composer.json

"cinghie/yii2-cookie-consent": "^1.5.0"

Insert Widget

You can load the CookieConsent Widget like this:

use cinghie\cookieconsent\widgets\CookieWidget;

<?= CookieWidget::widget([ 
        'message' => 'This website uses cookies to ensure you get the best experience on our website.',
        'dismiss' => 'Got It',
        'learnMore' => 'More info',
        'link' => 'http://silktide.com/privacy-policy',
        'theme' => 'dark-bottom'
]); ?>

Theme Options

  • All Options at https://silktide.com/tools/cookie-consent/docs/installation/
  • If you don't want a link for more info set learnMore to null

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.5.1 is the latest of 16 releases



BSD-3-Clause license
Stats
8 github stars & 7 github forks
11 downloads in the last day
809 downloads in the last 30 days
13957 total downloads