PHPackages                             setono/sylius-consent-management-plugin - 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. setono/sylius-consent-management-plugin

ActiveSylius-plugin[Utility &amp; Helpers](/categories/utility)

setono/sylius-consent-management-plugin
=======================================

Consent management plugin for Sylius

v0.6.6(2y ago)046↓100%[6 issues](https://github.com/Setono/SyliusConsentManagementPlugin/issues)proprietaryPHPPHP &gt;=8.1CI failing

Since May 11Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Setono/SyliusConsentManagementPlugin)[ Packagist](https://packagist.org/packages/setono/sylius-consent-management-plugin)[ GitHub Sponsors](https://github.com/Setono)[ RSS](/packages/setono-sylius-consent-management-plugin/feed)WikiDiscussions 1.x Synced 1w ago

READMEChangelog (10)Dependencies (55)Versions (20)Used By (0)

Sylius Consent Management Plugin
================================

[](#sylius-consent-management-plugin)

[![Build Status](https://github.com/Setono/SyliusConsentManagementPlugin/workflows/build/badge.svg)](https://github.com/Setono/SyliusConsentManagementPlugin/actions)[![Code Coverage](https://camo.githubusercontent.com/70ab16a4c65bd5288184b347c24b3d558e2d46ffc4d6619c7919d7bb971ad368/68747470733a2f2f636f6465636f762e696f2f67682f5365746f6e6f2f53796c697573436f6e73656e744d616e6167656d656e74506c7567696e2f67726170682f62616467652e7376673f746f6b656e3d43313950474832583331)](https://codecov.io/gh/Setono/SyliusConsentManagementPlugin)

This plugin will create a consent dialog that every user will see. The user is given the option to accept all 'services' or necessary services.

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

[](#installation)

```
composer require setono/sylius-consent-management-plugin
```

### Register bundle

[](#register-bundle)

Add the bundle to `bundles.php` if not done automatically. Be sure to add this line **before** `Sylius\Bundle\GridBundle\SyliusGridBundle::class`

```
    Setono\SyliusConsentManagementPlugin\SetonoSyliusConsentManagementPlugin::class => ['all' => true],
    Sylius\Bundle\GridBundle\SyliusGridBundle::class => ['all' => true],
```

### Install assets

[](#install-assets)

```
php bin/console assets:install
```

### Add migration

[](#add-migration)

```
php bin/console doctrine:migration:diff
php bin/console doctrine:migration:migrate
```

### Import the routes

[](#import-the-routes)

Create the file `config/routes/setono_sylius_consent_management.yaml` and add the following:

```
# config/routes/setono_sylius_consent_management.yaml
setono_sylius_consent_management:
    resource: "@SetonoSyliusConsentManagementPlugin/Resources/config/routes.yaml"
```

If your store doesn't use locales, there's also a route file for that:

```
# config/routes/setono_sylius_consent_management.yaml
setono_sylius_consent_management:
    resource: "@SetonoSyliusConsentManagementPlugin/Resources/config/routes_no_locale.yaml"
```

### Update the layout

[](#update-the-layout)

For everything to work there are two Twig functions you need to call: `sscm_resources()` and `sscm_widget()`. The `sscm_resources()` should be called in your `` section while the `sscm_widget()` should be called just before the ``.

The `sscm_resources()` function will output the JS and CSS needed to render the widget. It will only output what's necessary, so you don't have to worry about bloating your page with unused JS or CSS.

The `sscm_widget()` will output the actual HTML needed to render the widget. It's also true for this function that it will only render what's necessary, so in this case if the user has already seen the widget, it will output an empty string.

###  Health Score

33

—

LowBetter than 73% of packages

Maintenance40

Moderate activity, may be stable

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 95.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 ~82 days

Recently: every ~121 days

Total

19

Last Release

375d ago

Major Versions

0.6.x-dev → v1.0.0-alpha2025-04-04

PHP version history (2 changes)v0.1.0PHP &gt;=7.4

0.8.x-devPHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2412177?v=4)[Joachim Løvgaard](/maintainers/loevgaard)[@loevgaard](https://github.com/loevgaard)

---

Top Contributors

[![loevgaard](https://avatars.githubusercontent.com/u/2412177?v=4)](https://github.com/loevgaard "loevgaard (486 commits)")[![igormukhingmailcom](https://avatars.githubusercontent.com/u/6544038?v=4)](https://github.com/igormukhingmailcom "igormukhingmailcom (19 commits)")[![Roshyo](https://avatars.githubusercontent.com/u/9363039?v=4)](https://github.com/Roshyo "Roshyo (4 commits)")[![tannyl](https://avatars.githubusercontent.com/u/11209600?v=4)](https://github.com/tannyl "tannyl (2 commits)")

---

Tags

syliuscookiesylius-pluginconsent

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/setono-sylius-consent-management-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/setono-sylius-consent-management-plugin/health.svg)](https://phpackages.com/packages/setono-sylius-consent-management-plugin)
```

###  Alternatives

[sylius/sylius

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

8.5k5.8M710](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M370](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

1.3k1.4M195](/packages/sulu-sulu)[oro/platform

Business Application Platform (BAP)

641140.7k103](/packages/oro-platform)[contao/core-bundle

Contao Open Source CMS

1231.6M2.6k](/packages/contao-core-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9017.2k55](/packages/open-dxp-opendxp)

PHPackages © 2026

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