PHPackages                             spiral/cookies - 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. [Security](/categories/security)
4. /
5. spiral/cookies

ActiveLibrary[Security](/categories/security)

spiral/cookies
==============

Spiral Framework: Secure Cookie middleware

3.16.1(2mo ago)317.9k↓32.9%2MITPHPPHP &gt;=8.1CI failing

Since Jun 7Pushed 2mo ago7 watchersCompare

[ Source](https://github.com/spiral/cookies)[ Packagist](https://packagist.org/packages/spiral/cookies)[ Docs](https://spiral.dev)[ GitHub Sponsors](https://github.com/sponsors/spiral)[ RSS](/packages/spiral-cookies/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (8)Versions (91)Used By (2)

Spiral Framework: Secure Cookie middleware
==========================================

[](#spiral-framework-secure-cookie-middleware)

[![PHP Version Require](https://camo.githubusercontent.com/dcc631aa440660924524f07308ce5b9b730cec3de133494e451387b9e8d668f0/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f636f6f6b6965732f726571756972652f706870)](https://packagist.org/packages/spiral/cookies)[![Latest Stable Version](https://camo.githubusercontent.com/da8a2fc5b23cd0dfbdd0fffc8f3e6e4f657192dd571b8d8efb8efe7018b5c693/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f636f6f6b6965732f762f737461626c65)](https://packagist.org/packages/spiral/cookies)[![phpunit](https://github.com/spiral/cookies/actions/workflows/phpunit.yml/badge.svg)](https://github.com/spiral/cookies/actions)[![psalm](https://github.com/spiral/cookies/actions/workflows/psalm.yml/badge.svg)](https://github.com/spiral/cookies/actions)[![Codecov](https://camo.githubusercontent.com/493805d4817680484204d5e4e998d31142a859913ecc5db33cbfc1ea47091e65/68747470733a2f2f636f6465636f762e696f2f67682f73706972616c2f636f6f6b6965732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/spiral/cookies/)[![Total Downloads](https://camo.githubusercontent.com/488aac51affba4f45ceafeaa928fd706dc4d1ba9bf6d1aae06149975cb48624d/68747470733a2f2f706f7365722e707567782e6f72672f73706972616c2f636f6f6b6965732f646f776e6c6f616473)](https://packagist.org/packages/spiral/cookies)[![type-coverage](https://camo.githubusercontent.com/fba3077cff0afe1b222582b72822d61036b5e61a12928afc6617890a4ee29ab2/68747470733a2f2f73686570686572642e6465762f6769746875622f73706972616c2f636f6f6b6965732f636f7665726167652e737667)](https://shepherd.dev/github/spiral/cookies)[![psalm-level](https://camo.githubusercontent.com/af8d71fd7d30102048b888ef0e07492bcc91ea62a22edf21b8cef735e68cbd9a/68747470733a2f2f73686570686572642e6465762f6769746875622f73706972616c2f636f6f6b6965732f6c6576656c2e737667)](https://shepherd.dev/github/spiral/cookies)[![](https://camo.githubusercontent.com/4442b73a11753b80fdd7b442ddbfaf8383902c8b9ffa66ed1718e8c62e102f2e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646973636f72642d636861742d6d6167656e74612e737667)](https://discord.gg/8bZsjYhVVk)

**[Documentation](https://spiral.dev/docs/http-cookies)** | [Framework Bundle](https://github.com/spiral/framework)

License:
--------

[](#license)

MIT License (MIT). Please see [`LICENSE`](./LICENSE) for more information. Maintained by [Spiral Scout](https://spiralscout.com).

###  Health Score

59

—

FairBetter than 99% of packages

Maintenance83

Actively maintained with recent releases

Popularity30

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 93.3% 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 ~28 days

Recently: every ~82 days

Total

88

Last Release

84d ago

Major Versions

v1.2.1 → v2.6.02020-09-02

2.14.1 → 3.0.02022-09-13

PHP version history (5 changes)v1.0.0PHP ^7.1

v1.1.0PHP ^7.2

2.7.0PHP &gt;=7.2

2.10.0PHP &gt;=7.4

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/796136?v=4)[Anton Tsitou](/maintainers/wolfy-j)[@wolfy-j](https://github.com/wolfy-j)

---

Top Contributors

[![wolfy-j](https://avatars.githubusercontent.com/u/796136?v=4)](https://github.com/wolfy-j "wolfy-j (3447 commits)")[![spiralbot](https://avatars.githubusercontent.com/u/100867204?v=4)](https://github.com/spiralbot "spiralbot (125 commits)")[![SerafimArts](https://avatars.githubusercontent.com/u/2461257?v=4)](https://github.com/SerafimArts "SerafimArts (83 commits)")[![vvval](https://avatars.githubusercontent.com/u/11367763?v=4)](https://github.com/vvval "vvval (14 commits)")[![alexndr-novikov](https://avatars.githubusercontent.com/u/7372962?v=4)](https://github.com/alexndr-novikov "alexndr-novikov (4 commits)")[![rauanmayemir](https://avatars.githubusercontent.com/u/9691?v=4)](https://github.com/rauanmayemir "rauanmayemir (4 commits)")[![butschster](https://avatars.githubusercontent.com/u/773481?v=4)](https://github.com/butschster "butschster (3 commits)")[![roxblnfk](https://avatars.githubusercontent.com/u/4152481?v=4)](https://github.com/roxblnfk "roxblnfk (2 commits)")[![tuneyourserver](https://avatars.githubusercontent.com/u/7487510?v=4)](https://github.com/tuneyourserver "tuneyourserver (2 commits)")[![R3VoLuT1OneR](https://avatars.githubusercontent.com/u/1111188?v=4)](https://github.com/R3VoLuT1OneR "R3VoLuT1OneR (2 commits)")[![jwdeitch](https://avatars.githubusercontent.com/u/7282720?v=4)](https://github.com/jwdeitch "jwdeitch (1 commits)")[![jdrieghe](https://avatars.githubusercontent.com/u/12606789?v=4)](https://github.com/jdrieghe "jdrieghe (1 commits)")[![ncou](https://avatars.githubusercontent.com/u/16743322?v=4)](https://github.com/ncou "ncou (1 commits)")[![MatthewHallCom](https://avatars.githubusercontent.com/u/1230091?v=4)](https://github.com/MatthewHallCom "MatthewHallCom (1 commits)")[![nikolaev-dm](https://avatars.githubusercontent.com/u/52159053?v=4)](https://github.com/nikolaev-dm "nikolaev-dm (1 commits)")[![samsonasik](https://avatars.githubusercontent.com/u/459648?v=4)](https://github.com/samsonasik "samsonasik (1 commits)")[![lex111](https://avatars.githubusercontent.com/u/4408379?v=4)](https://github.com/lex111 "lex111 (1 commits)")

---

Tags

cookiesencryptedphp7psr15spiral

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/spiral-cookies/health.svg)

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

###  Alternatives

[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M113](/packages/mews-purifier)[selective/samesite-cookie

Secure your site with SameSite cookies

10144.0k](/packages/selective-samesite-cookie)

PHPackages © 2026

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