cinghie/yii2-cookie-consent

Yii2 Cookie Consent to alerting users about the use of cookies on your Yii2 website.

Installs: 35 984

Dependents: 4

Suggesters: 0

Security: 0

Stars: 14

Watchers: 3

Forks: 11

Open Issues: 1

Type:yii2-extension

1.5.1 2018-11-17 14:32 UTC

This package is auto-updated.

Last update: 2021-11-04 01:42:43 UTC


README

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: 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.1"

or add in composer.json

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

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