dynamikaweb / yii2-cookieconsent-widget
Cookie Consent is a lightweight JavaScript plugin for alerting users about the use of cookies on your website.
Installs: 508
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Type:yii2-extension
Requires
- php: >=7.0
- npm-asset/cookieconsent: 3.*
- yiisoft/yii2: *
README
Documentation
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require dynamikaweb/yii2-cookieconsent-widget "*"
or add
"dynamikaweb/yii2-cookieconsent-widget": "*"
to the require
section of your composer.json
file.
Usage
use dynamikaweb\cookieconsent\CookieConsent; echo CookieConsent::widget([ 'assetType' => CookieConsent::ASSET_TYPE_CDN, 'pluginOptions' => [ # see examples: https://www.osano.com/cookieconsent/documentation/javascript-api ] ]);
This project is under BSD-3-Clause license.