PHPackages                             cse/helpers-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. [Framework](/categories/framework)
4. /
5. cse/helpers-cookie

ActiveLibrary[Framework](/categories/framework)

cse/helpers-cookie
==================

The helpers allows you to easily manage cookie data. SET, HAS, GET, REMOVE cookie data - all this is available in this library.

1.0.8(7y ago)67921MITPHPPHP &gt;=7.1

Since Jan 20Pushed 7y ago3 watchersCompare

[ Source](https://github.com/cs-eliseev/helpers-cookie)[ Packagist](https://packagist.org/packages/cse/helpers-cookie)[ Docs](https://github.com/cs-eliseev/helpers-cookie)[ RSS](/packages/cse-helpers-cookie/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (10)Used By (1)

[English](https://github.com/cs-eliseev/helpers-cookie/blob/master/README.md) | Русский

COOKIE CSE HELPERS
==================

[](#cookie-cse-helpers)

[![Travis (.org)](https://camo.githubusercontent.com/bc2feea4bb8416180835f74ea70a451cf3c62caa87ae0f7a52b692814f0a3b97/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f63732d656c69736565762f68656c706572732d636f6f6b69652e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/cs-eliseev/helpers-cookie)[![Codecov](https://camo.githubusercontent.com/928400b7fb7687830c6b402e3a44effd4a56bb25e5baf4b42bbfc503e84f4fde/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f63732d656c69736565762f68656c706572732d636f6f6b69652e7376673f7374796c653d666c61742d737175617265)](https://codecov.io/gh/cs-eliseev/helpers-cookie)[![Scrutinizer code quality](https://camo.githubusercontent.com/0f8b4fc25cfe26da6c642e3ab2fb2852f3310b7320a90610218a4abdd03e647f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f63732d656c69736565762f68656c706572732d636f6f6b69652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/cs-eliseev/helpers-cookie/?branch=master)

[![Packagist](https://camo.githubusercontent.com/8ad6452cfc9975db799cf5e184a8a6f5861c8a4e1a95b657b44f45cadf0c39fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6373652f68656c706572732d636f6f6b69652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cse/helpers-cookie)[![Minimum PHP Version](https://camo.githubusercontent.com/dcd4b4aec2c1709157fa6a2c050f709d75cde9552a79cfff0b70a97fad7281ae/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/cse/helpers-cookie)[![Packagist](https://camo.githubusercontent.com/895c5cfd338244e29d10e8666c9b977af8cdb2c08086375556e15b71750705f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6373652f68656c706572732d636f6f6b69652e7376673f7374796c653d666c61742d737175617265)](https://github.com/cs-eliseev/helpers-cookie/blob/master/LICENSE.md)[![GitHub repo size](https://camo.githubusercontent.com/3a2e3b24f7277500b864bc1a2f0b5011f4617531eebd1e5988d1648ba0e0f6ff/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f63732d656c69736565762f68656c706572732d636f6f6b69652e7376673f7374796c653d666c61742d737175617265)](https://github.com/cs-eliseev/helpers-cookie/archive/master.zip)

The helpers allows you to easily manage cookie data. SET, HAS, GET, REMOVE cookie data - all this is available in this library.

Project repository:

**DEMO**

```
Cookie::set('cookie_example', 12345);
// ['cookie_example' => 12345]
if (Cookie::has('cookie_example')) Cookie::remove('cookie_example');
// true
Cookie::get('cookie_example', 67890);
// 67890
```

---

Introduction
------------

[](#introduction)

[CSE HELPERS](https://github.com/cs-eliseev/helpers/blob/master/README.md) is a collection of several libraries with simple functions written in PHP for people.

Despite using PHP as the main programming language for the Internet, its functions are not enough. COOKIE CSE HELPERS allows you to easy SET, HAS, GET, REMOVE cookie data.

[CSE HELPERS](https://github.com/cs-eliseev/helpers/blob/master/README.md) was created for the rapid development of web applications.

**CSE Helpers project:**

- [Array CSE helpers](https://github.com/cs-eliseev/helpers-arrays)
- [Cookie CSE helpers](https://github.com/cs-eliseev/helpers-cookie)
- [Date CSE helpers](https://github.com/cs-eliseev/helpers-date)
- [Email CSE helpers](https://github.com/cs-eliseev/helpers-email)
- [IP CSE helpers](https://github.com/cs-eliseev/helpers-ip)
- [Json CSE helpers](https://github.com/cs-eliseev/helpers-json)
- [Math Converter CSE helpers](https://github.com/cs-eliseev/helpers-math-converter)
- [Phone CSE helpers](https://github.com/cs-eliseev/helpers-phone)
- [Request CSE helpers](https://github.com/cs-eliseev/helpers-request)
- [Session CSE helpers](https://github.com/cs-eliseev/helpers-session)
- [Word CSE helpers](https://github.com/cs-eliseev/helpers-word)

Below you will find some information on how to init library and perform common commands.

Install
-------

[](#install)

You can find the most recent version of this project [here](https://github.com/cs-eliseev/helpers-cookie).

### Composer

[](#composer)

Execute the following command to get the latest version of the package:

```
composer require cse/helpers-cookie
```

Or file composer.json should include the following contents:

```
{
    "require": {
        "cse/helpers-cookie": "*"
    }
}
```

### Git

[](#git)

Clone this repository locally:

```
git clone https://github.com/cs-eliseev/helpers-cookie.git
```

### Download

[](#download)

[Download the latest release here](https://github.com/cs-eliseev/helpers-cookie/archive/master.zip).

Usage
-----

[](#usage)

The class consists of static methods that are conveniently used in any project. See example [examples-cookie.php](https://github.com/cs-eliseev/helpers-word/blob/master/examples/examples-cookie.php).

**SET cookie**

Example:

```
Cookie::set('cookie_example', 12345);
// ['cookie_example' => 12345]
```

**HAS cookie**

Example:

```
Cookie::has('cookie_example');
// true
```

**GET cookie**

Example:

```
Cookie::get('cookie_example');
// 12345
```

Set default value:

```
Cookie::get('cookie_example_2', 67890);
// 67890
```

**REMOVE cookie**

Example:

```
Cookie::remove('cookie_example');
Cookie::has('cookie_example');
// false
```

Testing &amp; Code Coverage
---------------------------

[](#testing--code-coverage)

PHPUnit is used for unit testing. Unit tests ensure that class and methods does exactly what it is meant to do.

General PHPUnit documentation can be found at .

To run the PHPUnit unit tests, execute:

```
phpunit PATH/TO/PROJECT/tests/
```

If you want code coverage reports, use the following:

```
phpunit --coverage-html ./report PATH/TO/PROJECT/tests/
```

Used PHPUnit default config:

```
phpunit --configuration PATH/TO/PROJECT/phpunit.xml
```

Donating
--------

[](#donating)

You can support this project [here](https://www.paypal.me/cseliseev/10usd). You can also help out by contributing to the project, or reporting bugs. Even voicing your suggestions for features is great. Anything to help is much appreciated.

License
-------

[](#license)

The COOKIE CSE HELPERS is open-source PHP library licensed under the MIT license. Please see [License File](https://github.com/cs-eliseev/helpers-cookie/blob/master/LICENSE.md) for more information.

---

> GitHub [@cs-eliseev](https://github.com/cs-eliseev)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~21 days

Total

9

Last Release

2620d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d3b9e49d0ce3fd71c8eb31b7c14e48373dbb415a9d16950ce52d23bf89b2ae26?d=identicon)[ak\_eliseev](/maintainers/ak_eliseev)

---

Top Contributors

[![cs-eliseev](https://avatars.githubusercontent.com/u/24221291?v=4)](https://github.com/cs-eliseev "cs-eliseev (53 commits)")

---

Tags

collectioncollectionscookiecookiescseframeworkhelperhelperslibraryphptooltoolsutilitiesutilityutilsframeworkhelperutilityhelperslibrarytoolcollectioncollectionscookiescookietoolsutilsutilitiescse

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/cse-helpers-cookie/health.svg)

```
[![Health](https://phpackages.com/badges/cse-helpers-cookie/health.svg)](https://phpackages.com/packages/cse-helpers-cookie)
```

###  Alternatives

[jbzoo/utils

Collection of PHP functions, mini classes and snippets for everyday developer's routine life.

8161.6M36](/packages/jbzoo-utils)[dragon-code/support

Support package is a collection of helpers and tools for any project.

239.6M106](/packages/dragon-code-support)

PHPackages © 2026

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