Download the PHP package dmstr/yii2-cookie-consent without Composer
On this page you can find all versions of the php package dmstr/yii2-cookie-consent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dmstr/yii2-cookie-consent
More information about dmstr/yii2-cookie-consent
Files in dmstr/yii2-cookie-consent
Download dmstr/yii2-cookie-consent
More information about dmstr/yii2-cookie-consent
Files in dmstr/yii2-cookie-consent
Please rate this library. Is it a good library?
Informations about the package yii2-cookie-consent
yii2-cookie-consent
solution to the EU Cookie Law
Getting started
Installation
CookieConsentHelper Component
yii config
Usage with PHP
Usage with TWIG
Options
option | description | default | type |
---|---|---|---|
name | Defines the cookie name that Cookie Consent will use to store the status of the consent. Default is cookie conset helper's cookie name | "" | STRING |
path | Defines the cookie path | "/" | STRING |
domain | Defines the cookie domain | "" | STRING |
expiryDays | Defines the cookie exipration days | 365 | INT |
message | The message in the popup | "This website uses cookies to ensure you get the best experience on our website." | STRING |
save | The save button text | "Save" | STRING |
acceptAll | The accept all button text | "Accept all" | STRING |
controlsOpen | The open controls button text | "Change" | STRING |
detailsOpen | The open details button text | "Details" | STRING |
learnMore | The link text | "More info" | STRING |
visibleControls | If the controls panel should start open | false | BOOLEAN |
visibleDetails | If the details panel should start open | false | BOOLEAN |
link | The link pointing to your privacy policy page | "#" | STRING |
consent | A configuration array that will tell the cookie consent what it should do. Keys are the consent values that will be stored in the consent cookie. Labels are the checkbos labes. If no label is set the key will be used instead. The cookies array are a list of cookies names that can be deleted (when possible) when the corresponding consent value is revoked. See the above example "Usage with PHP". Also is possible to start the checkbox checked or disabled | [] | ARRAY |
Toggle popup, controls and details
CSS Example
Settings config example phemellc/yii2-settings
- section: cookie-consent
- key: config
- type: object
Worth knowing
Widgets throws an yii\base\InvalidConfigException
if you define an invalid cookie consent helper component
All versions of yii2-cookie-consent with dependencies
PHP Build Version
Package Version
The package dmstr/yii2-cookie-consent contains the following files
Loading the files please wait ....