PHPackages                             core23/gdpr-bundle - 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. core23/gdpr-bundle

Abandoned → [nucleos/gdpr-bundle](/?search=nucleos%2Fgdpr-bundle)ArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

core23/gdpr-bundle
==================

This bundle provides a GDPR conform cookie information for symfony applications.

2.8.0(1y ago)116222[9 issues](https://github.com/nucleos/NucleosGDPRBundle/issues)[7 PRs](https://github.com/nucleos/NucleosGDPRBundle/pulls)MITPHPPHP ^8.1

Since May 25Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nucleos/NucleosGDPRBundle)[ Packagist](https://packagist.org/packages/core23/gdpr-bundle)[ Docs](https://nucleos.rocks)[ GitHub Sponsors](https://github.com/sponsors/core23)[ Fund](https://ko-fi.com/core23)[ RSS](/packages/core23-gdpr-bundle/feed)WikiDiscussions 2.8.x Synced 3d ago

READMEChangelog (10)Dependencies (14)Versions (36)Used By (0)

WARNING: This repository is deprecated
======================================

[](#warning-this-repository-is-deprecated)

This project will no longer receive any updates.

You might use [klaro.js](https://github.com/klaro-org/klaro-js) instead.

NucleosGDPRBundle
=================

[](#nucleosgdprbundle)

[![Latest Stable Version](https://camo.githubusercontent.com/6f26295f3d9f69b87cdd9eff7d72bbbbd1785d11e720710ebc502a62828310b1/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f676470722d62756e646c652f762f737461626c65)](https://packagist.org/packages/nucleos/gdpr-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/b820ab85f442c03a3f80e90121da17a132cec9456685385910d547688c15d503/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f676470722d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/nucleos/gdpr-bundle)[![License](https://camo.githubusercontent.com/06e878afb28605ed541e95a3d4de7982f219602a43be84b85e450f7e1241f9d4/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f676470722d62756e646c652f6c6963656e7365)](https://packagist.org/packages/nucleos/gdpr-bundle)

[![Total Downloads](https://camo.githubusercontent.com/2a2181198c1e831b7b22d9b6712d6d2d02b498bf6d40c12a4d18dfb738d9d182/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f676470722d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/nucleos/gdpr-bundle)[![Monthly Downloads](https://camo.githubusercontent.com/4d5a43a5c45686a2e2913cce9cf663943bbce4721c0285bafb4507b554416534/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f676470722d62756e646c652f642f6d6f6e74686c79)](https://packagist.org/packages/nucleos/gdpr-bundle)[![Daily Downloads](https://camo.githubusercontent.com/cf68a448c68ef1d0d9d2377362e87304d458526dc3ede075a76ed7334a08f348/68747470733a2f2f706f7365722e707567782e6f72672f6e75636c656f732f676470722d62756e646c652f642f6461696c79)](https://packagist.org/packages/nucleos/gdpr-bundle)

[![Continuous Integration](https://github.com/nucleos/NucleosGDPRBundle/workflows/Continuous%20Integration/badge.svg?event=push)](https://github.com/nucleos/NucleosGDPRBundle/actions?query=workflow%3A%22Continuous+Integration%22+event%3Apush)[![Code Coverage](https://camo.githubusercontent.com/f737e920f24f4b24b35906b93785d53128207c90d1ee712fab75d6d2d3ab607c/68747470733a2f2f636f6465636f762e696f2f67682f6e75636c656f732f4e75636c656f734744505242756e646c652f67726170682f62616467652e737667)](https://codecov.io/gh/nucleos/NucleosGDPRBundle)[![Type Coverage](https://camo.githubusercontent.com/2e7efa3a6b7d0408626348d0c8c31d79a83ced24e6358c5d9280de2cd4cf27ff/68747470733a2f2f73686570686572642e6465762f6769746875622f6e75636c656f732f4e75636c656f734744505242756e646c652f636f7665726167652e737667)](https://shepherd.dev/github/nucleos/NucleosGDPRBundle)

This bundle provides a GDPR conform cookie information for symfony applications.

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

[](#installation)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
composer require nucleos/gdpr-bundle

```

### Enable the Bundle

[](#enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Nucleos\NucleosGDPRBundle\NucleosGDPRBundle::class => ['all' => true],
];
```

### Block cookies

[](#block-cookies)

By default all cookies are kept, also the cookie consent was not set. To block all domain cookies, you can set the following config.

```
# config/packages/nucleos_gdpr.yaml

nucleos_gdpr:
    block_cookies: null
```

You can define a list of cookies that are kept:

```
# config/packages/nucleos_gdpr.yaml

nucleos_gdpr:
    block_cookies:
        keep:
          - PHPSESSID
          - ADMIN_.*
```

### Google FLoC (Federated Learning of Cohorts)

[](#google-floc-federated-learning-of-cohorts)

By default a `Permissions-Policy` header is added to every response to respect user privacy. You can enable Google FLoC tracking via the following configuration:

```
# config/packages/nucleos_gdpr.yaml

nucleos_gdpr:
    privacy:
        google_floc: true
```

### Assets

[](#assets)

It is recommended to use [webpack](https://webpack.js.org/) / [webpack-encore](https://github.com/symfony/webpack-encore)to include the `GdprPopup.js` and `GdprPopup.css` file in your page. These files are located in the `assets` folder.

Usage
-----

[](#usage)

```
{# template.twig #}

{{ sonata_block_render({ 'type': 'nucleos_gdpr.block.information' }, {
    'url': 'https://example.com/gdpr',
    'text': 'Example text' // optional
}) }}
```

License
-------

[](#license)

This bundle is under the [MIT license](LICENSE.md).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance22

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~79 days

Total

28

Last Release

462d ago

Major Versions

0.3.0 → 1.0.02019-06-12

1.5.0 → 2.0.02020-06-14

2.7.x-dev → 3.0.x-dev2024-05-26

PHP version history (6 changes)0.1.0PHP ^7.1

0.3.0PHP ^7.2

1.3.0PHP ^7.3

2.2.0PHP ^7.3 || ^8.0

2.4.0PHP ^8.0

2.5.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/46179d0f1a863a1a71c634a413d857f8428ad9a8273cd065ba4f0e864730dde9?d=identicon)[core23](/maintainers/core23)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (659 commits)")[![nucleos-bot](https://avatars.githubusercontent.com/u/60489587?v=4)](https://github.com/nucleos-bot "nucleos-bot (588 commits)")[![core23](https://avatars.githubusercontent.com/u/3440437?v=4)](https://github.com/core23 "core23 (228 commits)")[![kodiakhq[bot]](https://avatars.githubusercontent.com/in/29196?v=4)](https://github.com/kodiakhq[bot] "kodiakhq[bot] (45 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (39 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (6 commits)")[![ensag-dev](https://avatars.githubusercontent.com/u/59049879?v=4)](https://github.com/ensag-dev "ensag-dev (1 commits)")

---

Tags

blockerbundledsgvoflocgdprsonatasonata-blocksymfonysymfony-bundlesymfonybundlecookiewidgetblocksonatagdprprivacydsgvosonata-blockFLoC

### Embed Badge

![Health badge](/badges/core23-gdpr-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/core23-gdpr-bundle/health.svg)](https://phpackages.com/packages/core23-gdpr-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sonata-project/admin-bundle

The missing Symfony Admin Generator

2.1k19.0M299](/packages/sonata-project-admin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[pentatrion/vite-bundle

Vite integration for your Symfony app

2725.3M13](/packages/pentatrion-vite-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

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