PHPackages                             yiiman/yii-lib-cookie - 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. yiiman/yii-lib-cookie

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

yiiman/yii-lib-cookie
=====================

Cookie library for Yii2 and Yii3 framework - very easy and powerfull

v0.0.2(4y ago)070BSD-3-ClausePHPPHP &gt;=7.0

Since Jan 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Yiiman-cms/yii-lib-cookie)[ Packagist](https://packagist.org/packages/yiiman/yii-lib-cookie)[ RSS](/packages/yiiman-yii-lib-cookie/feed)WikiDiscussions main Synced 1mo ago

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

yii-lib-cookie
==============

[](#yii-lib-cookie)

Cookie library for Yii2 framework - very easy and powerfull

Set Component
-------------

[](#set-component)

In Yii Advanced go to path: `common\config\main.php`And in Yii Basic go to path: `config\main.php`

Add component to `component` array:

```
[
    'components'=>
    [
        'cookie'=>YiiMan\YiiLibCookie\lib\cookie::class
    ]
]
```

Now you can call component like this:

```
Yii::$app->cookie
```

Set value to cookie
-------------------

[](#set-value-to-cookie)

Just do :

```
Yii::$app->cookie->newKey='new value';
```

Get saved value
---------------

[](#get-saved-value)

Just do :

```
$value=Yii::$app->cookie->newKey
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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

Every ~0 days

Total

2

Last Release

1588d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/289bca70798b2ce7dadc6fbe072bf8c2ffea21ef7db91a5a2659129b34ca9e4e?d=identicon)[yiiman](/maintainers/yiiman)

---

Top Contributors

[![yiiman-dev](https://avatars.githubusercontent.com/u/11722893?v=4)](https://github.com/yiiman-dev "yiiman-dev (4 commits)")

---

Tags

yii2yii2-extension

### Embed Badge

![Health badge](/badges/yiiman-yii-lib-cookie/health.svg)

```
[![Health](https://phpackages.com/badges/yiiman-yii-lib-cookie/health.svg)](https://phpackages.com/packages/yiiman-yii-lib-cookie)
```

###  Alternatives

[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

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

PHPackages © 2026

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