PHPackages                             bestyii/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. bestyii/yii2-cookie-consent

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

bestyii/yii2-cookie-consent
===========================

Yii2 Cookie Consent to alerting users about the use of cookies on your Yii2 website.

2.0.0(5y ago)06BSD-3-ClausePHP

Since Jun 10Pushed 5y agoCompare

[ Source](https://github.com/bestyii/yii2-cookie-consent)[ Packagist](https://packagist.org/packages/bestyii/yii2-cookie-consent)[ Docs](https://github.com/cinghie/yii2-cookie-consent)[ RSS](/packages/bestyii-yii2-cookie-consent/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (18)Used By (0)

Yii2 Cookie Consent
===================

[](#yii2-cookie-consent)

[![License](https://camo.githubusercontent.com/a3be3bf66bd52673770ec28c93dffe0fea3c36d87cd977f77b7f4adfbd21635f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63696e676869652f796969322d636f6f6b69652d636f6e73656e742e737667)](https://camo.githubusercontent.com/a3be3bf66bd52673770ec28c93dffe0fea3c36d87cd977f77b7f4adfbd21635f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63696e676869652f796969322d636f6f6b69652d636f6e73656e742e737667)[![Latest Stable Version](https://camo.githubusercontent.com/0307cfe74971d5552f4ebfd7d8061b3c05063c64d0b21cb417e0fa8c1d454ae9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63696e676869652f796969322d636f6f6b69652d636f6e73656e742e737667)](https://camo.githubusercontent.com/0307cfe74971d5552f4ebfd7d8061b3c05063c64d0b21cb417e0fa8c1d454ae9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63696e676869652f796969322d636f6f6b69652d636f6e73656e742e737667)[![Latest Release Date](https://camo.githubusercontent.com/483ec48a9270bd0ff492296aa94699cd931b28d9f17fa43e7b037431e42f3744/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f63696e676869652f796969322d636f6f6b69652d636f6e73656e742e737667)](https://camo.githubusercontent.com/483ec48a9270bd0ff492296aa94699cd931b28d9f17fa43e7b037431e42f3744/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f63696e676869652f796969322d636f6f6b69652d636f6e73656e742e737667)[![Latest Commit](https://camo.githubusercontent.com/b0be0422028efce6cb883100378bf8c2eb845e218619620c555c38135f404071/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f63696e676869652f796969322d636f6f6b69652d636f6e73656e742e737667)](https://camo.githubusercontent.com/b0be0422028efce6cb883100378bf8c2eb845e218619620c555c38135f404071/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f63696e676869652f796969322d636f6f6b69652d636f6e73656e742e737667)[![Total Downloads](https://camo.githubusercontent.com/9a0edc2b50aa898cdbda875dca92f828db19383ca69faa48e2874ae21e16fd97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63696e676869652f796969322d636f6f6b69652d636f6e73656e742e737667)](https://packagist.org/packages/cinghie/yii2-cookie-consent)

Yii2 Cookie Consent to alerting users about the use of cookies on your Yii2 website, using Cookie Consent Script:

Installation Using Composer
---------------------------

[](#installation-using-composer)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require bestyii/yii2-cookie-consent "^1.5.1"

```

or add in composer.json

```
"bestyii/yii2-cookie-consent": "^1.5.1"

```

Insert Widget
-------------

[](#insert-widget)

You can load the CookieConsent Widget like this:

```
use bestyii\cookieconsent\widgets\CookieWidget;

```

Theme Options
-------------

[](#theme-options)

- All Options at
- If you don't want a link for more info set learnMore to null

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 96.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~115 days

Recently: every ~318 days

Total

17

Last Release

2143d ago

Major Versions

1.5.1 → 2.0.02020-06-30

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/383284?v=4)[Yang](/maintainers/ezsky)[@ezsky](https://github.com/ezsky)

---

Top Contributors

[![cinghie](https://avatars.githubusercontent.com/u/2445152?v=4)](https://github.com/cinghie "cinghie (60 commits)")[![ezsky](https://avatars.githubusercontent.com/u/383284?v=4)](https://github.com/ezsky "ezsky (1 commits)")[![mattheobjornson](https://avatars.githubusercontent.com/u/10802450?v=4)](https://github.com/mattheobjornson "mattheobjornson (1 commits)")

---

Tags

yii2yii2 cookieyii2 cookie lawyii2 cookie consentyii2 eu cookie consent

### Embed Badge

![Health badge](/badges/bestyii-yii2-cookie-consent/health.svg)

```
[![Health](https://phpackages.com/badges/bestyii-yii2-cookie-consent/health.svg)](https://phpackages.com/packages/bestyii-yii2-cookie-consent)
```

###  Alternatives

[cinghie/yii2-cookie-consent

Yii2 Cookie Consent to alerting users about the use of cookies on your Yii2 website.

1744.3k2](/packages/cinghie-yii2-cookie-consent)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[albertborsos/yii2-gdpr-cookie-consent

GDPR compatible Cookie Consent widget allows the user to choose which kind of cookies they want to accept.

1124.3k1](/packages/albertborsos-yii2-gdpr-cookie-consent)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
