PHPackages                             alorel/alo-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. alorel/alo-cookie

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

alorel/alo-cookie
=================

A simple JavaScript cookie manager

1.1(10y ago)0186GPL-3.0+HTML

Since Jul 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Alorel/alo-cookie)[ Packagist](https://packagist.org/packages/alorel/alo-cookie)[ Docs](https://github.com/Alorel/alo-cookie)[ RSS](/packages/alorel-alo-cookie/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

[![Logo](https://cloud.githubusercontent.com/assets/4998038/8658729/8b3a918c-299d-11e5-8452-6b1b22c51618.png)](https://cloud.githubusercontent.com/assets/4998038/8658729/8b3a918c-299d-11e5-8452-6b1b22c51618.png)

[![License](https://camo.githubusercontent.com/73540f5778efc0df0a1c96ad9dac263229eae3da8fd734230a812cf83b4e85ac/68747470733a2f2f706f7365722e707567782e6f72672f616c6f72656c2f616c6f2d636f6f6b69652f6c6963656e73653f666f726d61743d706c6173746963)](LICENSE)

What is this sorcery ?
======================

[](#what-is-this-sorcery-)

It's a simple class to manipulate cookies in an object-oriented manner.

Usage
=====

[](#usage)

Get all document cookies
------------------------

[](#get-all-document-cookies)

```
var cookies = AloCookie.getAll();
// {name1:value1, name2:value2 ...}

```

Setting cookie "foo"
--------------------

[](#setting-cookie-foo)

```
var cookie = new AloCookie("foo");
cookie.value = "bar";
cookie.expire = 3600; //in 1 hour. Defaults to expire at the end of the session
cookie.domain = "www.example.com"; //defaults to window.location.hostname
cookie.path = "/cart/checkout"; // Defaults to "/"
cookie.secure = true; // true sends the cookie only via HTTPS. Defaults to window.location.protocol == "https:"
cookie.save()

```

Check if cookie called "foo" exists
-----------------------------------

[](#check-if-cookie-called-foo-exists)

```
var cookie = new AloCookie("foo"),
cookieExists = cookie.exists();

```

Deleting cookie "foo"
---------------------

[](#deleting-cookie-foo)

```
var cookie = new AloCookie("foo");
cookie.remove();

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3834d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cca267ade0c44a740c602ca62e377789418696ad942cbd1e3d59100b9928f1a2?d=identicon)[Alorel](/maintainers/Alorel)

---

Top Contributors

[![Alorel](https://avatars.githubusercontent.com/u/4998038?v=4)](https://github.com/Alorel "Alorel (13 commits)")

---

Tags

javascriptmanagerstandalonecookie

### Embed Badge

![Health badge](/badges/alorel-alo-cookie/health.svg)

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

###  Alternatives

[tightenco/ziggy

Use your Laravel named routes in JavaScript.

4.3k41.6M267](/packages/tightenco-ziggy)[matthiasmullie/minify

CSS &amp; JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @import statements and small assets in CSS files), and optimizes/shortens a few common programming patterns.

2.0k30.5M336](/packages/matthiasmullie-minify)[tedivm/jshrink

Javascript Minifier built in PHP

76037.7M139](/packages/tedivm-jshrink)[codingfreaks/cf-cookiemanager

Manage cookies, scripts, and GDPR compliance on your Typo3 website with CodingFreaks Typo3 Cookie Manager. Customize cookie banners, streamline workflow, and enhance user experience. Ensure GDPR compliance and take control of cookie management with our Typo3 cookie management extension. Visit the official Typo3 Documentation page to learn more.

1625.8k](/packages/codingfreaks-cf-cookiemanager)[corneltek/assetkit

High performance asset manager.

531.4k3](/packages/corneltek-assetkit)

PHPackages © 2026

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