PHPackages                             fruit/cookiekit - 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. fruit/cookiekit

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

fruit/cookiekit
===============

Cookie monster of Fruit framework

0.0.2(10y ago)019PHP

Since Nov 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/fruit-php/cookiekit)[ Packagist](https://packagist.org/packages/fruit/cookiekit)[ RSS](/packages/fruit-cookiekit/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (7)Versions (4)Used By (0)

CookieKit
=========

[](#cookiekit)

This package is part of Fruit Framework.

CookieKit is set of tools helping you manage cookies for you web app.

[![Build Status](https://camo.githubusercontent.com/af73db168a849504474e45f0bc7d4bccc50ff9bcfdcb2d4ae983ac8e27c94126/68747470733a2f2f7472617669732d63692e6f72672f526f6e6d692f66727569742d636f6f6b69656b69742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Ronmi/fruit-cookiekit)

CookieKit is still under development, not usable now.

Synopsis
--------

[](#synopsis)

Basically, just treat as normal array.

```
$cookies = new Fruit\CookieKit\Cookie;
$myval = $cookies['mykey'];
unset($cookies['mykey']);
// do something, and then
$cookies['anotherkey'] = $anotherval;
$cookies->send(); // send Set-Cookies header
```

Not only PHP built-in cookie support
------------------------------------

[](#not-only-php-built-in-cookie-support)

Well-defined `CookieSetter` interface makes you easier to use CookieKit in almost any platform. For example, for your PHPSGI application, you don't even need to write your own `CookieSetter`:

```
$headers = [];
$setter = new PeclHttpCookieSetter($environment['Cookies'], function($str) use ($headers) {
	$headers['Set-Cookies'] = $str;
});
$cookies = new Cookie($setter);
$cookies['mykey'] = $myval;
$cookies->send();
return [200, $headers, 'hello, world'];
```

Note: CookieKit might have proper support to PHPSGI when it comes to stable.

License
-------

[](#license)

Any version of MIT, GPL or LGPL.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

Every ~38 days

Total

3

Last Release

3813d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ef743a4ba2b41bc6643ca3c4d71f4608abee7dc617efa09b18e3fa0a44aeda8?d=identicon)[Ronmi](/maintainers/Ronmi)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fruit-cookiekit/health.svg)

```
[![Health](https://phpackages.com/badges/fruit-cookiekit/health.svg)](https://phpackages.com/packages/fruit-cookiekit)
```

PHPackages © 2026

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