PHPackages                             anonym-php/anonym-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. anonym-php/anonym-cookie

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

anonym-php/anonym-cookie
========================

AnonymFramework Cookie Component

1.2.x-dev(10y ago)11701MITPHPPHP &gt;=5.4.0

Since Aug 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/AnonymPHP/Anonym-Cookie)[ Packagist](https://packagist.org/packages/anonym-php/anonym-cookie)[ Docs](https://gemframework.com)[ RSS](/packages/anonym-php-anonym-cookie/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (1)

AnonymCookie
============

[](#anonymcookie)

AnonymFramework Cookie işlemlerinin yapılacağı sınıftır, ayrıca sınıftan ayrı olarakda kullanılabilir.

Sınıfın Çağrımı
---------------

[](#sınıfın-çağrımı)

```
use Anonym\Components\Cookie\Cookie;
$cookie = new Cookie();
```

Basit İşlemler
==============

[](#basit-i̇şlemler)

Bu kısımda veri okuma veri yazma gibi işlemler vardır,

Veri Okumak
-----------

[](#veri-okumak)

```
$value = $cookie->get('cookiename');
```

Veri Yazmak
-----------

[](#veri-yazmak)

```
$value = $cookie->set('cookiename', 'cookievalue', time()+3600);
```

Veri Silmek
-----------

[](#veri-silmek)

```
$cookie->delete('cookiename');
```

Veri Kontrolu
-------------

[](#veri-kontrolu)

```
var_dump($cookie->has('cookiename')); // bool true or false
```

Verileri Şifrelemek
===================

[](#verileri-şifrelemek)

Bu kısımda verileri nasıl şifreleyebileceğiniz anlatılmaktar

verileri şifreleyebilmek için sınıfı ilk oluştururken parametre olarak bir adet true atamanız yada setEncode ile öncelikle encode yapacağınızı belli etmeniz gerekir. Şifrelemeyi ayarladıktan sonra özel olarak bir şifreleyici girilmesse default olarak base64 şifrelemesi kullanılır

Default Şifreleme
-----------------

[](#default-şifreleme)

```
$cookie = new Cookie(true);
```

---

```
$cookie->setEncode(true);
```

Özleştirilmiş Şifreleme
-----------------------

[](#özleştirilmiş-şifreleme)

```
$cookie->setEncoder( new Base64Encoder());
```

Verileri göndermek
==================

[](#verileri-göndermek)

Cookie atanması yapıldıktan sonra bunun tarayıcıya bildirilmesi gerekir.

```
use Anonym\Components\Cookie\UseCookieHeaders;

$useHeaders = new UseCookieHeaders();
$useHeaders->useCookies();
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.1% 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 ~0 days

Total

2

Last Release

3936d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c3f1e53b43ef665cfe41f9c7fa30ca07d8c615020c30eeccdc4be0209a32bc3?d=identicon)[anonymframework](/maintainers/anonymframework)

---

Top Contributors

[![vahitserifsaglam1](https://avatars.githubusercontent.com/u/9705445?v=4)](https://github.com/vahitserifsaglam1 "vahitserifsaglam1 (33 commits)")[![anonymframework](https://avatars.githubusercontent.com/u/13378594?v=4)](https://github.com/anonymframework "anonymframework (1 commits)")

---

Tags

cookie

### Embed Badge

![Health badge](/badges/anonym-php-anonym-cookie/health.svg)

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

###  Alternatives

[spatie/laravel-cookie-consent

Make your Laravel app comply with the crazy EU cookie law

1.5k4.7M20](/packages/spatie-laravel-cookie-consent)[statikbe/laravel-cookie-consent

Cookie consent modal for EU

213396.7k](/packages/statikbe-laravel-cookie-consent)[oveleon/contao-cookiebar

Contao Cookiebar

63124.1k6](/packages/oveleon-contao-cookiebar)[dirkpersky/typo3-dp_cookieconsent

Enable a cookie consent box. Let you visitors control the usage of cookies and load script or content after a consent. (ePrivacy, TTDSG)

36201.3k1](/packages/dirkpersky-typo3-dp-cookieconsent)[xsuchy09/utm-cookie

Utm-Cookie saves utm parameters from url into cookie with defined lifetime (default 7 days). Than cookie (utm) can be used later without parsing google or any other cookies.

1456.1k2](/packages/xsuchy09-utm-cookie)[bizley/cookiemonster

Yii extension to manage cookie warning.

2020.1k1](/packages/bizley-cookiemonster)

PHPackages © 2026

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