PHPackages                             pixelopen/sulu-gdprbundle - 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. pixelopen/sulu-gdprbundle

ActiveSulu-bundle[Utility &amp; Helpers](/categories/utility)

pixelopen/sulu-gdprbundle
=========================

GDPR tools for Sulu

2.5.0(1y ago)4747[1 issues](https://github.com/Pixel-Open/sulu-gdprbundle/issues)MITJavaScriptPHP ^8.0

Since May 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Pixel-Open/sulu-gdprbundle)[ Packagist](https://packagist.org/packages/pixelopen/sulu-gdprbundle)[ Docs](https://github.com/Pixel-Open/sulu-gdprbundle)[ RSS](/packages/pixelopen-sulu-gdprbundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (3)Used By (0)

Sulu GDPR bundle
================

[](#sulu-gdpr-bundle)

[![GitHub release (with filter)](https://camo.githubusercontent.com/15fae2cca0d3d0f8a8544c7d4af9ef3a4717517db72937ba9cec78aaf7f501bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506978656c2d4f70656e2f73756c752d6764707262756e646c65)](https://camo.githubusercontent.com/15fae2cca0d3d0f8a8544c7d4af9ef3a4717517db72937ba9cec78aaf7f501bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506978656c2d4f70656e2f73756c752d6764707262756e646c65)[![Dependency](https://camo.githubusercontent.com/2b385cfb766678c0eff6ba8bba366705dbd982051717b95917d3b793151388e5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73756c752d322e352d6363613030302e737667)](https://sulu.io/)[![Quality Gate Status](https://camo.githubusercontent.com/e9facd8439b239c9dfd51d6bc44b1aff36a1e5e2f4a709ac454e3da53ffc6305/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d506978656c2d4f70656e5f73756c752d6764707262756e646c65266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=Pixel-Open_sulu-gdprbundle)

Presentation
------------

[](#presentation)

A Sulu bundle to easily manage the GDPR. It also allows you to manage the consent banner by using the [Tarteaucitron](https://github.com/AmauriC/tarteaucitron.js/) consent management system.

[![](img/backend.png)](img/backend.png)

[![](img/frontend.png)](img/frontend.png)

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

[](#requirements)

- PHP &gt;= 8.0
- Sulu &gt;= 2.5.\*
- Symfony &gt;= 5.4
- Composer

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

[](#installation)

### Install the bundle

[](#install-the-bundle)

Execute the following [composer](https://getcomposer.org/) command to add the bundle to the dependencies of your project:

```
composer require pixelopen/sulu-gdprbundle
```

### Enable the bundle

[](#enable-the-bundle)

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

```
return [
    /* ... */
    Pixel\GDPRBundle\GDPRBundle::class => ['all' => true],
];
```

### Update schema (for dev environnement)

[](#update-schema-for-dev-environnement)

```
bin/console do:sch:up --force
```

Bundle Config
-------------

[](#bundle-config)

Define the Admin Api Route in `routes_admin.yaml`

```
gdpr.setting_api:
  type: rest
  prefix: /admin/api
  resource: pixel_gdpr.settings_route_controller
  name_prefix: gdpr.
```

Use
---

[](#use)

The bundle is only composed of the settings, which make the management of the GDPR very easy.

To use the GDPR management of the bundle, just check the "Use cookies management?". All the other options should be display.

The **Services** section will take care to manage the different cookies scripts.

The **Parameters** section will help you manage the Tarteaucitron banner, which displays the consent banner. There are plenty of parameters, so don't hesitate to visit the repository of Tarteaucitron.

### Twig extension

[](#twig-extension)

The bundle comes with two twig functions:

**gdpr\_settings()**: returns the settings of the bundle. No parameters are required.

Example of use:

```
{% set gdprSettings = gdrp_settings() %}
{{ gdprSettings.useCookiesHandleing }}
```

**gdprScripts()**: renders the consent banner. No parameters are required.

Example of use:

```
{{ gdpr_scripts() }}
```

Contributing
------------

[](#contributing)

You can contribute to this bundle. The only thing you must do is respect the coding standard we implements. You can find them in the `ecs.php` file.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

720d ago

### Community

Maintainers

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

---

Top Contributors

[![matthieu2607](https://avatars.githubusercontent.com/u/14790414?v=4)](https://github.com/matthieu2607 "matthieu2607 (7 commits)")

---

Tags

gdprsulu-bundletarteaucitronjssulusulu-bundle

###  Code Quality

Static AnalysisPHPStan

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pixelopen-sulu-gdprbundle/health.svg)

```
[![Health](https://phpackages.com/badges/pixelopen-sulu-gdprbundle/health.svg)](https://phpackages.com/packages/pixelopen-sulu-gdprbundle)
```

###  Alternatives

[sulu/sulu

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

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

Bundle for managing localized content-rich entities like blog-posts in the Sulu content management system

66409.6k2](/packages/sulu-article-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)[sulu/headless-bundle

Bundle that provides controllers and services for using Sulu as headless content management system

55133.7k2](/packages/sulu-headless-bundle)[robole/sulu-ai-translator-bundle

Translate any type of content using DeepL

181.3k](/packages/robole-sulu-ai-translator-bundle)[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)

PHPackages © 2026

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