PHPackages                             slam/yii2-js-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. slam/yii2-js-cookie

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

slam/yii2-js-cookie
===================

Asset Bundle for Yii2 with JavaScript Cookie.

v1.1.0(7y ago)06.4kBSD-3-ClausePHP

Since Jul 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Slamdunk/yii2-js-cookie)[ Packagist](https://packagist.org/packages/slam/yii2-js-cookie)[ Docs](https://github.com/slam/yii2-js-cookie)[ RSS](/packages/slam-yii2-js-cookie/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

yii2-js-cookie
==============

[](#yii2-js-cookie)

This extension provides an assets bundle with [JavaScript Cookie](https://github.com/js-cookie/js-cookie/)for [Yii framework 2.0](http://www.yiiframework.com/) applications.

[![Latest Stable Version](https://camo.githubusercontent.com/398197ee7d4cf8cfb4b507aa4eacf48f6703f41f27c133fa1b2d291402b85c72/68747470733a2f2f706f7365722e707567782e6f72672f776562746f75636865722f796969322d6a732d636f6f6b69652f762f737461626c65)](https://packagist.org/packages/webtoucher/yii2-js-cookie)[![Total Downloads](https://camo.githubusercontent.com/63195c686921ebe9d2cae0e8197a48bd6caedca71f61f7d8cb3b18e0ab9f6d3a/68747470733a2f2f706f7365722e707567782e6f72672f776562746f75636865722f796969322d6a732d636f6f6b69652f646f776e6c6f616473)](https://packagist.org/packages/webtoucher/yii2-js-cookie)[![Daily Downloads](https://camo.githubusercontent.com/22c993553eb0f6dae4846c20341334d977c80cebfdb792ef42bc66abf1c2a0b1/68747470733a2f2f706f7365722e707567782e6f72672f776562746f75636865722f796969322d6a732d636f6f6b69652f642f6461696c79)](https://packagist.org/packages/webtoucher/yii2-js-cookie)[![Latest Unstable Version](https://camo.githubusercontent.com/be9bc2fc8e759f373ca8422789771e29cc0957e60b0c4e3fd5472c7186268131/68747470733a2f2f706f7365722e707567782e6f72672f776562746f75636865722f796969322d6a732d636f6f6b69652f762f756e737461626c65)](https://packagist.org/packages/webtoucher/yii2-js-cookie)[![License](https://camo.githubusercontent.com/eeb5cfd29dd8c11749e732dc48769b9948f89d936e363b87fb8518a1072e3cbf/68747470733a2f2f706f7365722e707567782e6f72672f776562746f75636865722f796969322d6a732d636f6f6b69652f6c6963656e7365)](https://packagist.org/packages/webtoucher/yii2-js-cookie)

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

[](#installation)

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

Either run

```
$ php composer.phar require webtoucher/yii2-js-cookie "*"

```

or add

```
"webtoucher/yii2-js-cookie": "*"

```

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

Usage
-----

[](#usage)

In view

```
webtoucher\cookie\AssetBundle::register($this);
```

or as dependency in your main application asset bundle

```
class AppAsset extends AssetBundle
{
	// ...

	public $depends = [
		// ...
		'\webtoucher\cookie\AssetBundle'
	];
}
```

Then you can use Cookies in your scripts. Please read [project documentation](https://github.com/js-cookie/js-cookie#basic-usage) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

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

2856d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/50348?v=4)[Sahn Lam](/maintainers/Slam)[@slam](https://github.com/slam)

---

Top Contributors

[![webtoucher](https://avatars.githubusercontent.com/u/500243?v=4)](https://github.com/webtoucher "webtoucher (6 commits)")[![Slamdunk](https://avatars.githubusercontent.com/u/152236?v=4)](https://github.com/Slamdunk "Slamdunk (1 commits)")

---

Tags

extensionyii

### Embed Badge

![Health badge](/badges/slam-yii2-js-cookie/health.svg)

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

###  Alternatives

[evgeniyrru/yii2-slick

Yii2 extension for Slick Carousel

22182.1k3](/packages/evgeniyrru-yii2-slick)[romka-chev/yii2-swiper

Yii2 extension for Swiper slider

1840.6k](/packages/romka-chev-yii2-swiper)

PHPackages © 2026

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