yii-ui / yii2-cookie-consent
This package is abandoned and no longer maintained.
No replacement package was suggested.
Cookie Consent widget for Yii 2.
v1.0.0
2019-06-24 07:45 UTC
Requires
- php: >=7.1
- npm-asset/cookieconsent: ^3.1.1
- yiisoft/yii2: ^2.0.21
This package is auto-updated.
Last update: 2021-02-24 11:46:25 UTC
README
This is an Yii framework 2.0 widget of the Osano Cookie Consent widget.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require yii-ui/yii2-cookie-consent
or add
"yii-ui/yii2-cookie-consent": "^1.0.0"
to the require section of your composer.json
file.
Usage
use yiiui\yii2cookieconsent\widgets\CookieConsent;
CookieConsent::widget([
'palettePopupBackground' => '#000000',
'paletteButtonBackground' => '#FBAD38',
'theme' => 'classic',
'position' => 'bottom-right',
'contentDismiss' => 'Om nom nom nom',
'contentLink' => 'Learn more',
'contentMessage' => 'Do you like Cookies?',
'contentHref' => 'https://en.wikipedia.org/wiki/Cookie_Monster',
]);
More Examples will be added soon at https://www.yii-ui.com/packages/yii2-cookie-consent. For plugin configuration see Osano Cookie Consent Documentation.
Documentation
Documentation will be added soon at https://www.yii-ui.com/packages/yii2-cookie-consent/docs.
License
yii2-cookie-consent is released under the MIT License. See the LICENSE.md for details.