PHPackages                             dmstr/yii2-cookie-consent - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dmstr/yii2-cookie-consent

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

dmstr/yii2-cookie-consent
=========================

Yii2 Cookie Consent Widget

1.5.0(2mo ago)1452.6k↓31.7%3[2 issues](https://github.com/dmstr/yii2-cookie-consent/issues)MITPHP

Since Sep 27Pushed 6y ago6 watchersCompare

[ Source](https://github.com/dmstr/yii2-cookie-consent)[ Packagist](https://packagist.org/packages/dmstr/yii2-cookie-consent)[ RSS](/packages/dmstr-yii2-cookie-consent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (23)Used By (0)

yii2-cookie-consent
===================

[](#yii2-cookie-consent)

solution to the EU Cookie Law

Getting started
---------------

[](#getting-started)

### Installation

[](#installation)

```
composer require dmstr/yii2-cookie-consent

```

CookieConsentHelper Component
-----------------------------

[](#cookieconsenthelper-component)

yii config

```
'components' => [
    'cookieConsentHelper' => [
        'class' => dmstr\cookieconsent\components\CookieConsentHelper::class
    ]
]
```

### Usage with PHP

[](#usage-with-php)

```
use dmstr\cookieconsent\widgets\CookieConsent;
