PHPackages                             tms/consent - 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. tms/consent

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

tms/consent
===========

Simple, lightweight and customizable consent manager for Neos CMS based on Klaro!

1.3.0(4y ago)11.3k[4 issues](https://github.com/tmsdev/Tms.Consent/issues)[16 PRs](https://github.com/tmsdev/Tms.Consent/pulls)MITSCSS

Since Oct 12Pushed 2y ago1 watchersCompare

[ Source](https://github.com/tmsdev/Tms.Consent)[ Packagist](https://packagist.org/packages/tms/consent)[ RSS](/packages/tms-consent/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (1)Versions (28)Used By (0)

Consent Manager for Neos CMS
============================

[](#consent-manager-for-neos-cms)

Simple, lightweight and customizable consent manager for [Neos CMS](https://www.neos.io/) based on [Klaro!](https://github.com/KIProtect/klaro)

Let your users decide, which scripts should be loaded and executed while visiting your website.

---

**IMPORTANT: We are developers, no lawyers. Using this package without further adaptation will most likely NOT result in GDPR, ePrivacy nor CCPA compliance!**

---

Install
-------

[](#install)

```
composer require tms/consent
```

What's included?
----------------

[](#whats-included)

- Klaro Script + opinionated Klaro Config (override or use your own anytime)
- Klaro Config editing via `Settings.yaml` &amp; predefined services
- Klaro default styles &amp; themes [`/Resources/Private/Styles/Theme`](https://github.com/tmsdev/Tms.Consent/tree/master/Resources/Private/Styles/Theme)
- Placeholder for blocked content elements (Fusion Component + JS)
- Consent settings button (Fusion Component + JS)
- Overrides for common Neos packages [`/Resources/Private/Fusion/PresetPackages`](https://github.com/tmsdev/Tms.Consent/tree/master/Resources/Private/Fusion/PresetPackages)

Usage
-----

[](#usage)

### Step 1: Service configuration via `YAML` settings

[](#step-1-service-configuration-via-yaml-settings)

This package includes default consent management settings for the following services. Enable them in your `Settings.yaml` or add your own services.

- Cloudflare
- Matomo
- Google Analytics
- Google Maps
- Youtube

```
# Example Tms.Consent configuration
Tms:
  Consent:
    config:
      # The privacy policy uri can be specified by node type, path, identifier or simply an absolute/relative link
      privacyPolicy: '#4999814e-61c2-4ce1-ab46-c1145f2285d7'

      # Enable the services you need consent management for
      services:
        matomo:
          enabled: true
          # Use the position key to render services in your favorite order
          position: 100
        youtube:
          enabled: true
          position: 200
```

#### Extend your services

[](#extend-your-services)

Simply extend the `YAML` settings within your Neos package.

```
Tms:
  Consent:
    config:
      services:
        yourServiceName:
          enabled: true

          # -----------------------------------------------------------------
          # Klaro! Config
          # -----------------------------------------------------------------
          klaro:
            name: yourServiceName
            title: 'Your Service Title'
            description: 'Short description, why your website use this service...'
            purposes: ['functionality']
```

Think your service configuration is useful for others too? Don't hesitate to submit a PR. All the service related configuration should be combined in one settings file named like `Settings.Consent.YourServiceName.yaml`.

### Step 2: Modify HTML

[](#step-2-modify-html)

In order to control your configured services (e.g. to stop loading and/or execution without consent) it is necessary to modify the resulting HTML of your webpages.

This can be achieved by simply replacing some attributes - see

We try to provide preconfigured solutions for some common Neos packages, please have a look at [`/Resources/Private/Fusion/PresetPackages`](https://github.com/tmsdev/Tms.Consent/tree/master/Resources/Private/Fusion/PresetPackages)what we've already covered. Your package is missing? Submit a PR, if you think the service configuration could be useful for others.

### Step 3: Verify

[](#step-3-verify)

Check your site - have you blocked all your critical services?

- by using the dev tools of your favorite browser
- or simply run a check on

### (Optional) Step 4: Better UX for blocked content elements

[](#optional-step-4-better-ux-for-blocked-content-elements)

This is an example how to use the Fusion Component for a Youtube + Bootstrap markup.

```
prototype(Your.Package:Component.Atom.Youtube) < prototype(Neos.Fusion:Component) {
    renderer = afx`

    `
}

```

Wishlist
--------

[](#wishlist)

- Add multi-site support
- Backend module with some basic statistics on acceptance rate
- User location based configurations

Any feedback, pull request or other contribution is very welcome!

Acknowledgments
---------------

[](#acknowledgments)

Development sponsored by [tms.development - Online Marketing and Neos CMS Agency](https://www.tms-development.de/)

Webpack config inspired by

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~54 days

Recently: every ~121 days

Total

11

Last Release

1501d ago

Major Versions

0.1.0 → 1.0.02020-10-22

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5636715?v=4)[Joachim Beck](/maintainers/jobee)[@jobee](https://github.com/jobee)

---

Top Contributors

[![jobee](https://avatars.githubusercontent.com/u/5636715?v=4)](https://github.com/jobee "jobee (27 commits)")

---

Tags

consent-managementcookieeprivacygdprklaroneoscmsthird-partycookieneoscmsgdprconsent-managementThird PartyePrivacyKlaro

### Embed Badge

![Health badge](/badges/tms-consent/health.svg)

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

###  Alternatives

[statikbe/laravel-cookie-consent

Cookie consent modal for EU

213396.7k](/packages/statikbe-laravel-cookie-consent)[dirkpersky/typo3-dp_cookieconsent

Enable a cookie consent box. Let you visitors control the usage of cookies and load script or content after a consent. (ePrivacy, TTDSG)

36201.3k1](/packages/dirkpersky-typo3-dp-cookieconsent)[shel/neos-colorpicker

A plugin for Neos CMS which provides a colorpicker editor

1494.4k6](/packages/shel-neos-colorpicker)[codingfreaks/cf-cookiemanager

Manage cookies, scripts, and GDPR compliance on your Typo3 website with CodingFreaks Typo3 Cookie Manager. Customize cookie banners, streamline workflow, and enhance user experience. Ensure GDPR compliance and take control of cookie management with our Typo3 cookie management extension. Visit the official Typo3 Documentation page to learn more.

1625.8k](/packages/codingfreaks-cf-cookiemanager)[albertborsos/yii2-gdpr-cookie-consent

GDPR compatible Cookie Consent widget allows the user to choose which kind of cookies they want to accept.

1124.3k1](/packages/albertborsos-yii2-gdpr-cookie-consent)[bramdeleeuw/cookieconsent

GDPR compliant cookie bar and consent checker

1511.5k2](/packages/bramdeleeuw-cookieconsent)

PHPackages © 2026

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