PHPackages                             dogado/laravel-cookie-manager - 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. dogado/laravel-cookie-manager

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

dogado/laravel-cookie-manager
=============================

cookie manager library with different capabilities to modify cookies

1.2.0(4y ago)17.1k↓50%MITPHPPHP ^7.3|^8.0

Since Jul 26Pushed 4y ago4 watchersCompare

[ Source](https://github.com/dogado-group/laravel-cookie-manager)[ Packagist](https://packagist.org/packages/dogado/laravel-cookie-manager)[ Docs](https://github.com/dogado-group/laravel-cookie-manager)[ RSS](/packages/dogado-laravel-cookie-manager/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

dogado Cookie Manager for Laravel
=================================

[](#dogado-cookie-manager-for-laravel)

[![phpunit](https://github.com/dogado-group/laravel-cookie-manager/actions/workflows/phpunit.yml/badge.svg)](https://github.com/dogado-group/laravel-cookie-manager/actions/workflows/phpunit.yml)[![Coverage Status](https://camo.githubusercontent.com/b5d5fbaac51979e6dbf12b0a8cbc2cda6c4b6bd8af7762eaa811125ea8ded667/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f646f6761646f2d67726f75702f6c61726176656c2d636f6f6b69652d6d616e616765722f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/dogado-group/laravel-cookie-manager?branch=main)[![Total Downloads](https://camo.githubusercontent.com/3992f4409aae535179a3b267c2f0b75a35ad8f22767af807a72b74a6c75c63d3/68747470733a2f2f706f7365722e707567782e6f72672f646f6761646f2f6c61726176656c2d636f6f6b69652d6d616e616765722f646f776e6c6f616473)](https://packagist.org/packages/dogado/laravel-cookie-manager)[![Latest Stable Version](https://camo.githubusercontent.com/4bc216f2949404e30ba6d87dacb93c646da17382e283c395d3cb5216207728d3/68747470733a2f2f706f7365722e707567782e6f72672f646f6761646f2f6c61726176656c2d636f6f6b69652d6d616e616765722f762f737461626c65)](https://packagist.org/packages/dogado/laravel-cookie-manager)[![Latest Unstable Version](https://camo.githubusercontent.com/ebbc9373a1486b5af0a4b7b14340ce2d9d1fc84b0add29c091ecd322f840f56a/68747470733a2f2f706f7365722e707567782e6f72672f646f6761646f2f6c61726176656c2d636f6f6b69652d6d616e616765722f762f756e737461626c652e706e67)](https://packagist.org/packages/dogado/laravel-cookie-manager)[![License](https://camo.githubusercontent.com/5833ba2b02b440c243a1aa822718c05c1625609cbc1032810b368428dba78248/68747470733a2f2f706f7365722e707567782e6f72672f646f6761646f2f6c61726176656c2d636f6f6b69652d6d616e616765722f6c6963656e7365)](https://packagist.org/packages/dogado/laravel-cookie-manager)

1. [Introduction](#introduction)
2. [Requirements](#requirements)
3. [Installation](#installation)
    - [Configure your Kernel to use the middleware](#configure-your-kernel-to-use-the-middleware)

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

[](#introduction)

A client library package for Laravel based projects, maintained by the [dogado GmbH](https://dogado.de).

It provides a middleware class that automatically transforms cookies to be [`Secure`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#restrict_access_to_cookies) if the request is SSL encrypted and, if the browser supports it, sets the [`SameSite=None`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite) attribute.

To learn more about `SameSite` cookies and how to use them, check out the [web.dev blog from Google](https://web.dev/samesite-cookies-explained/) or the [Mozilla docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite).

Requirements
------------

[](#requirements)

- php `^7.3` or `^8.0`
- `symfony/http-foundation` version `^5.3.7` or `^6.0`

Installation
------------

[](#installation)

```
composer require dogado/laravel-cookie-manager

```

### Configure your Kernel to use the middleware

[](#configure-your-kernel-to-use-the-middleware)

Add the following class to the appropriate Laravel kernel middleware configuration according to your requirements.

```
\Dogado\Laravel\CookieManager\Http\Middleware\SecureResponseCookies::class

```

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% 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 ~64 days

Total

3

Last Release

1628d ago

### Community

Maintainers

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

---

Top Contributors

[![chris-doehring](https://avatars.githubusercontent.com/u/6341536?v=4)](https://github.com/chris-doehring "chris-doehring (6 commits)")[![darthsoup](https://avatars.githubusercontent.com/u/1668978?v=4)](https://github.com/darthsoup "darthsoup (2 commits)")

---

Tags

cookielaravelmiddlewarephp7php8samesitesecure

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/dogado-laravel-cookie-manager/health.svg)

```
[![Health](https://phpackages.com/badges/dogado-laravel-cookie-manager/health.svg)](https://phpackages.com/packages/dogado-laravel-cookie-manager)
```

###  Alternatives

[illuminate/session

The Illuminate Session package.

9937.4M753](/packages/illuminate-session)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[codefog/contao-news_categories

News Categories bundle for Contao Open Source CMS

3183.3k6](/packages/codefog-contao-news-categories)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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