Skip to content
Yii2 Cookie Consent
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Yii2 Cookie Consent

License Latest Stable Version Latest Release Date Latest Commit Total Downloads

Yii2 Cookie Consent to alerting users about the use of cookies on your Yii2 website, using Cookie Consent Script:

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' => '',
		'theme' => 'dark-bottom'
]); ?>

Theme Options

You can’t perform that action at this time.