定制 isq-portal/yii2-cookiecheck 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

isq-portal/yii2-cookiecheck

最新稳定版本:0.0.1

Composer 安装命令:

composer require isq-portal/yii2-cookiecheck

包简介

ISQ Yii2 Cookie Checker Widget for GDPR Compliance

README 文档

README

Cookiecheck is a Yii2 Extension for the ISQ Custom Cookie Settings Check to reach GDPR/DSGVO compliance.

Installation

The preferred way to install this extension is through composer.

php composer.phar require --prefer-dist isq-portal/yii2-cookiecheck "dev-master"

or add

"isq-portal/yii2-cookiecheck": "dev-master"

to the require section of your composer.json file.

Usage

# add to composer.json
"require-dev" : {
		...,
		"isq-portal/yii2-cookiecheck": "@dev"
	}

# temporary dev local path (../) solution:
"repositories": [
		...,
		{
			"type": "path",
			"url": "../yii2-cookiecheck"
		}
	],

# composer update

# import class to view
use IsqPortal\Yii2Cookiecheck\ISQCookiecheck;

# integrate widget to view with options., e.g.:
<? echo ISQCookiecheck::widget(['options' => [
                    'cookiePolicyURL' => 'site/privacy',
                    'panelTogglePosition' => 'left',
                    'unsetDefault' => 'blocked',
                    'Matomo' => [
                        'enabled' => '1',
                        'label' => 'Webanalyse (Matomo)',
                        'code' => ''
                    ]
                ]
            ]); 

Options are:

  • 'cookiePolicyURL': path to policy information site a.k.a. "Datenschutzerklärung", relative to webroot, e.g.: 'site/policy'
  • 'panelTogglePosition': location for the toggle button to display on the bottom of the window: 'left', 'right' or 'center'
  • 'unsetDefault': on page load will cookies be allowed or blocked: 'allowed' or 'blocked'
  • cookie-settings array by name of the cookie, e.g.: 'Matomo' & inividual cookie code configs:
  • 'enabled': is this cookie to be used on your site? 'true', 'false', '1', ''
  • 'label': label for this cookie within the popup, e.g: 'Webanalyse (Matomo)'
  • 'code': individual site code, e.g.: Google tracking ID: 'UA-1234567-8' or empty

License

MIT

统计信息

  • 总下载量: 87
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-25