PHPackages                             dynamikaweb/yii2-cookieconsent-widget - 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. dynamikaweb/yii2-cookieconsent-widget

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

dynamikaweb/yii2-cookieconsent-widget
=====================================

Cookie Consent is a lightweight JavaScript plugin for alerting users about the use of cookies on your website.

1.0(4y ago)0665BSD-3-ClausePHPPHP &gt;=7.0

Since Aug 3Pushed 4y agoCompare

[ Source](https://github.com/dynamikaweb/yii2-cookieconsent-widget)[ Packagist](https://packagist.org/packages/dynamikaweb/yii2-cookieconsent-widget)[ RSS](/packages/dynamikaweb-yii2-cookieconsent-widget/feed)WikiDiscussions main Synced 1mo ago

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

dynamikaweb/yii2-cookieconsent-widget
=====================================

[](#dynamikawebyii2-cookieconsent-widget)

[![php version](https://camo.githubusercontent.com/eac44152ceefda72513ad3704025fb82350baa1855a3979f0a238b919b9de388/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64796e616d696b617765622f796969322d636f6f6b6965636f6e73656e742d776964676574)](https://camo.githubusercontent.com/eac44152ceefda72513ad3704025fb82350baa1855a3979f0a238b919b9de388/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f64796e616d696b617765622f796969322d636f6f6b6965636f6e73656e742d776964676574)[![pkg version](https://camo.githubusercontent.com/b10f98ec45c4b922b6ee511b26ef9e7059ba9c0876780d72daedbc6d77900f6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64796e616d696b617765622f796969322d636f6f6b6965636f6e73656e742d776964676574)](https://camo.githubusercontent.com/b10f98ec45c4b922b6ee511b26ef9e7059ba9c0876780d72daedbc6d77900f6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64796e616d696b617765622f796969322d636f6f6b6965636f6e73656e742d776964676574)[![license](https://camo.githubusercontent.com/62ab87a6efa9433e48c592f55c4218ad735a6cd0ffa71a3cf8522389cacd87a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64796e616d696b617765622f796969322d636f6f6b6965636f6e73656e742d776964676574)](https://camo.githubusercontent.com/62ab87a6efa9433e48c592f55c4218ad735a6cd0ffa71a3cf8522389cacd87a3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f64796e616d696b617765622f796969322d636f6f6b6965636f6e73656e742d776964676574)[![quality](https://camo.githubusercontent.com/b09357f595f53d04a7b4a2a97936b5aa33aa1a5edd10e274bd30607282cc2d3d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f64796e616d696b617765622f796969322d636f6f6b6965636f6e73656e742d776964676574)](https://camo.githubusercontent.com/b09357f595f53d04a7b4a2a97936b5aa33aa1a5edd10e274bd30607282cc2d3d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f64796e616d696b617765622f796969322d636f6f6b6965636f6e73656e742d776964676574)[![build](https://camo.githubusercontent.com/cf9ee7d9950e094d8ff3c297127e0cf172d9df3f2d989d85c4133c660de4e525/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f64796e616d696b617765622f796969322d636f6f6b6965636f6e73656e742d776964676574)](https://camo.githubusercontent.com/cf9ee7d9950e094d8ff3c297127e0cf172d9df3f2d989d85c4133c660de4e525/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f64796e616d696b617765622f796969322d636f6f6b6965636f6e73656e742d776964676574)

Documentation
-------------

[](#documentation)

- [Usage](#usage)
- [Installation](#installation)
- [Plugin Options](https://www.osano.com/cookieconsent/documentation/javascript-api)
- [Cookie Consent Source](https://github.com/osano/cookieconsent)

Installation
------------

[](#installation)

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

Either run

```
$ composer require dynamikaweb/yii2-cookieconsent-widget "*"
```

or add

```
"dynamikaweb/yii2-cookieconsent-widget": "*"
```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

```
use dynamikaweb\cookieconsent\CookieConsent;

echo CookieConsent::widget([
  'assetType' => CookieConsent::ASSET_TYPE_CDN,
  'pluginOptions' => [
      # see examples: https://www.osano.com/cookieconsent/documentation/javascript-api
  ]
]);
```

---

[![dynamika soluções web](https://avatars.githubusercontent.com/dynamikaweb?size=12)](https://dynamika.com.br)This project is under [BSD-3-Clause](https://opensource.org/licenses/BSD-3-Clause) license.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1749d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29123479?v=4)[DornellesTV](/maintainers/RodrigoDornelles)[@RodrigoDornelles](https://github.com/RodrigoDornelles)

---

Top Contributors

[![RodrigoDornelles](https://avatars.githubusercontent.com/u/29123479?v=4)](https://github.com/RodrigoDornelles "RodrigoDornelles (4 commits)")

---

Tags

yii2cookiedynamika

### Embed Badge

![Health badge](/badges/dynamikaweb-yii2-cookieconsent-widget/health.svg)

```
[![Health](https://phpackages.com/badges/dynamikaweb-yii2-cookieconsent-widget/health.svg)](https://phpackages.com/packages/dynamikaweb-yii2-cookieconsent-widget)
```

###  Alternatives

[bizley/cookiemonster

Yii extension to manage cookie warning.

2020.1k1](/packages/bizley-cookiemonster)[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)
