yii-ui/yii2-cookie-consent

This package is abandoned and no longer maintained. No replacement package was suggested.

Cookie Consent widget for Yii 2.

Installs: 190

Dependents: 1

Suggesters: 0

Security: 0

Type:yii2-extension

v1.0.0 2019-06-24 07:45 UTC

This package is auto-updated.

Last update: 2021-02-24 11:46:25 UTC


README

Latest Stable Version Total Downloads Yii2 License

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.