Yii2 Cookie Consent
Open Issues: 0
- bower-asset/cookieconsent2: 2.0.*
- yiisoft/yii2: ^2.0
- hiqdev/hidev-hiqdev: <2.0 || dev-master
- hiqdev/hidev-php: <2.0 || dev-master
This package is auto-updated.
Last update: 2023-05-09 19:18:34 UTC
Cookie consent is required to comply with the EU Cookie Law.
Additionally it detects if cookie is disabled in user's browser and redirects user to predefined page.
Works by adding Behavior to the Application View. Behavior listens to EVENT_END_BODY and echos the consent script.
The preferred way to install this yii2-extension is through composer.
php composer.phar require "hiqdev/yii2-cookie-consent"
to the require section of your composer.json.
This extension is supposed to be used with composer-config-plugin.
Else look src/config/web.php for cofiguration example.
Available configuration parameters:
message- message to be shown
failUrl- url user will be redirected when cookies are disabled
For more details please see src/config/params.php.
This project is released under the terms of the BSD-3-Clause license. Read more here.
Copyright © 2017, HiQDev (http://hiqdev.com/)