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

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

sjaakp/yii2-cookieconsent
=========================

Osano Cookie Consent plugin for the Yii 2.0 framework

1.0.0(6y ago)015MITPHP

Since Dec 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sjaakp/yii2-cookieconsent)[ Packagist](https://packagist.org/packages/sjaakp/yii2-cookieconsent)[ RSS](/packages/sjaakp-yii2-cookieconsent/feed)WikiDiscussions master Synced today

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

yii2-cookieconsent
==================

[](#yii2-cookieconsent)

#### Wrapper for Osano Cookie Consent plugin

[](#wrapper-for-osano-cookie-consent-plugin)

[![Latest Stable Version](https://camo.githubusercontent.com/fec4a0b18fda1b220c79bc37edfec3db669fa473004c74e01978179de45f6f16/68747470733a2f2f706f7365722e707567782e6f72672f736a61616b702f796969322d636f6f6b6965636f6e73656e742f762f737461626c65)](https://packagist.org/packages/sjaakp/yii2-cookieconsent)[![Total Downloads](https://camo.githubusercontent.com/8ca991b90e13a0a24c09501531abbc5508580d416ec21465393e267613e69512/68747470733a2f2f706f7365722e707567782e6f72672f736a61616b702f796969322d636f6f6b6965636f6e73656e742f646f776e6c6f616473)](https://packagist.org/packages/sjaakp/yii2-cookieconsent)[![License](https://camo.githubusercontent.com/9a2a93753aa04ac6777e544acc3c1f050ceeb68c54cdf3519514a8f524f96a24/68747470733a2f2f706f7365722e707567782e6f72672f736a61616b702f796969322d636f6f6b6965636f6e73656e742f6c6963656e7365)](https://packagist.org/packages/sjaakp/yii2-cookieconsent)

This is a simple wrapper for the [Osano Cookie Consent plugin](https://www.osano.com/cookieconsent/documentation/about-cookie-consent/)to be used in the [Yii 2.0](https://www.yiiframework.com/ "Yii") PHP Framework.

Usage
-----

[](#usage)

`sjaakp\cookieconstent\CookieConsent` is a [Yii2 `Widget`](https://www.yiiframework.com/doc/api/2.0/yii-base-widget)which can be used in a layout view file along these lines:

```

    ...

    ...

    ...

```

**CookieConsent** options are documented [here](https://www.osano.com/cookieconsent/documentation/javascript-api/#content_options).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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

2404d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/156f636aceedc73021a2bfafb5433271c2c55d6cf4bce06b12902c85b4b491f1?d=identicon)[sjaakp](/maintainers/sjaakp)

---

Top Contributors

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

---

Tags

yii2extensionwidgetyiicookie-consent

### Embed Badge

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

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

###  Alternatives

[sjaakp/yii2-taggable

Manage tags of ActiveRecord in Yii2.

2932.6k](/packages/sjaakp-yii2-taggable)

PHPackages © 2026

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