PHPackages                             00f100/fcphp-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. 00f100/fcphp-cookie

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

00f100/fcphp-cookie
===================

Package to manipulate Cookies

0.1.2(7y ago)12121PHPPHP &gt;=7.2

Since Jul 7Pushed 7y ago1 watchersCompare

[ Source](https://github.com/00F100/fcphp-cookie)[ Packagist](https://packagist.org/packages/00f100/fcphp-cookie)[ Docs](https://github.com/00f100/fcphp-cookie)[ RSS](/packages/00f100-fcphp-cookie/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (4)Versions (4)Used By (1)

FcPhp Cookie
============

[](#fcphp-cookie)

Package to manipulate Cookie

[![Build Status](https://camo.githubusercontent.com/46aec269848e8417b41d24f49275d96bca1bd69d9ac2f01a733b871724198795/68747470733a2f2f7472617669732d63692e6f72672f3030463130302f66637068702d636f6f6b69652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/00F100/fcphp-cookie) [![codecov](https://camo.githubusercontent.com/629f0c41989c05de38f116fb8fb1403b373f0c8ca7fb233c63b365ba787a62ba/68747470733a2f2f636f6465636f762e696f2f67682f3030463130302f66637068702d636f6f6b69652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/00F100/fcphp-cookie) [![Total Downloads](https://camo.githubusercontent.com/afc423d92cb9675c235890b7cf524bde31951a8a31cd5b755070229ddc8945fe/68747470733a2f2f706f7365722e707567782e6f72672f3030463130302f66637068702d636f6f6b69652f646f776e6c6f616473)](https://packagist.org/packages/00F100/fcphp-cookie)

How to install
--------------

[](#how-to-install)

Composer:

```
$ composer require 00f100/fcphp-cookie
```

or add in composer.json

```
{
    "require": {
        "00f100/fcphp-cookie": "*"
    }
}
```

How to use
----------

[](#how-to-use)

```
use FcPhp\Cookie\Facades\CookieFacade;

/**
 * Facade to return instance of Cookie
 *
 * @param string $key Key into $_COOKIE of Cookie
 * @param array $cookies Variable $_SESSION
 * @param string $nonce Nonce to Crypto
 * @param string $pathKeys Path to save keys of Crypto
 * @param string $forceNewInstance Force create new instance
 * @return FcPhp\Cookie\Interfaces\ICookie
 */
CookieFacade::getInstance(string $key, array $cookies, string $nonce = null, string $pathKeys = null, bool $forceNewInstance = false) :ICookie

// With No Crypto into content
$cookie = CookieFacade::getInstance('key-cookie', $_COOKIE);

// With Crypto into content
use FcPhp\Crypto\Crypto;
$nonce = Crypto::getNonce();
$cookie = CookieFacade::getInstance('key-cookie', $_COOKIE, $nonce);

// Create new configuration
$cookie->set('item.config', 'value');

// Print: value
echo $cookie->get('item.config');
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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 ~14 days

Total

3

Last Release

2887d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2ff406566b9371ed5b48e1e62a5dcafd6f1de2e3066fa0922afdfe418d100b8c?d=identicon)[00F100](/maintainers/00F100)

---

Top Contributors

[![00F100](https://avatars.githubusercontent.com/u/8130040?v=4)](https://github.com/00F100 "00F100 (11 commits)")

---

Tags

packagecookiemanipulatefcphp

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/00f100-fcphp-cookie/health.svg)

```
[![Health](https://phpackages.com/badges/00f100-fcphp-cookie/health.svg)](https://phpackages.com/packages/00f100-fcphp-cookie)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k193.1M3.0k](/packages/composer-composer)[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k306.6M74](/packages/jean85-pretty-package-versions)[composer/satis

Simple Repository Generator

3.3k1.4M19](/packages/composer-satis)[spatie/laravel-cookie-consent

Make your Laravel app comply with the crazy EU cookie law

1.5k4.9M24](/packages/spatie-laravel-cookie-consent)[nunomaduro/essentials

Just better defaults for your Laravel projects.

1.2k467.0k98](/packages/nunomaduro-essentials)[statikbe/laravel-cookie-consent

Cookie consent modal for EU

219416.5k](/packages/statikbe-laravel-cookie-consent)

PHPackages © 2026

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