PHPackages                             syntro/silverstripe-klaro - 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. syntro/silverstripe-klaro

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

syntro/silverstripe-klaro
=========================

Silverstripe module including klaro consent

6.0.0(6mo ago)33.3k1[4 PRs](https://github.com/syntro-opensource/silverstripe-klaro/pulls)2BSD-3-ClausePHPCI passing

Since Nov 6Pushed 6mo ago3 watchersCompare

[ Source](https://github.com/syntro-opensource/silverstripe-klaro)[ Packagist](https://packagist.org/packages/syntro/silverstripe-klaro)[ RSS](/packages/syntro-silverstripe-klaro/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (5)Versions (13)Used By (2)

Silverstripe Klaro
==================

[](#silverstripe-klaro)

[![🎭 Tests](https://github.com/syntro-opensource/silverstripe-klaro/workflows/%F0%9F%8E%AD%20Tests/badge.svg)](https://github.com/syntro-opensource/silverstripe-klaro/actions?query=workflow%3A%22%F0%9F%8E%AD+Tests%22+branch%3A%22master%22)[![codecov](https://camo.githubusercontent.com/de2e7149c9d1fdce66006659c5e000f3a63cc5b54e021c88ddd30dcbb608c7fb/68747470733a2f2f636f6465636f762e696f2f67682f73796e74726f2d6f70656e736f757263652f73696c7665727374726970652d6b6c61726f2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/syntro-opensource/silverstripe-klaro)[![Dependabot](https://camo.githubusercontent.com/6a51b0751549261d7bac57cd594305fc5708bf907fc01b6f34aa97e914da4f6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e6461626f742d6163746976652d627269676874677265656e3f6c6f676f3d646570656e6461626f74)](https://camo.githubusercontent.com/6a51b0751549261d7bac57cd594305fc5708bf907fc01b6f34aa97e914da4f6f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646570656e6461626f742d6163746976652d627269676874677265656e3f6c6f676f3d646570656e6461626f74)[![phpstan](https://camo.githubusercontent.com/639cc050faeefad1a1d1ab830ca7a7950f1eede4402451b9a11cdc89d3a99066/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d73756363657373)](https://github.com/phpstan/phpstan)[![composer](https://camo.githubusercontent.com/17b8246ca275f75a578c7cf2ee5efaeedcd41372a8cbfd5de500d1209a4b02d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73796e74726f2f73696c7665727374726970652d6b6c61726f3f636f6c6f723d73756363657373266c6f676f3d636f6d706f736572)](https://packagist.org/packages/syntro/silverstripe-klaro)[![Packagist Version](https://camo.githubusercontent.com/684e682e713754b9411793ed86f5ca86c7961b31cfaaa42bdea2c511ce153cf8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73796e74726f2f73696c7665727374726970652d6b6c61726f3f6c6162656c3d737461626c65266c6f676f3d636f6d706f736572)](https://packagist.org/packages/syntro/silverstripe-klaro)

Silverstripe module for implementing a [GDPR](https://en.wikipedia.org/wiki/General_Data_Protection_Regulation) compliant service notice on a silverstripe based website.

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

[](#introduction)

from the [klaro](https://kiprotect.com/klaro) website:

> Klaro is a simple and powerful open source consent management platform (CMP) that helps you to meet the requirements of the GDPR and to protect the privacy of your website visitors and users.

Simply put, klaro is an easy to use and easy to set up tool for GDPR compliant cookie and service management. As Silverstripe does not provide such a mechanism out of the box, klaro can help fill in the gap for sites and applications aimed at european audiences.

While there are some modules around which allow the integration of klaro in a silverstripe based project, most of them use a database-centered approach for managing cookies and services. At Syntro, we believe that this approach, while flexible, does not do justice to the complexity of the subject matter and, because of the editability (and especially removability) of services by the end user, **can be dangerous**. For this reason, we introduced our own module.

`syntro/silverstripe-klaro` uses the [silverstripe configuration api](https://docs.silverstripe.org/en/4/developer_guides/configuration/configuration/)and the [silverstripe requirements pattern](https://docs.silverstripe.org/en/4/developer_guides/templates/requirements/)to manage services in an easy to learn way while giving the end user some control about texts displayed in the notice and modal.

Give it a try, Feedback is always welcome!

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

[](#installation)

To install this module, run the following command:

```
composer require syntro/silverstripe-klaro

```

Usage
-----

[](#usage)

### Quick Start

[](#quick-start)

If you just want to add a new service, add the script like so:

```
use Syntro\SilverstripeKlaro\KlaroRequirements;

// ...

KlaroRequirements::klaroJavascript('path/to/file.js', 'myservice');
```

In order to add this service to the notice, create a config like so:

```
Syntro\SilverstripeKlaro\Config:
    klaro_purposes:
        mypurpose:
            title: My Purpose
            description: This is my purpose
    klaro_services:
        myservice:
            title: My Service
            purposes: [ 'mypurpose' ]
```

After flushing, the modal will display `myservice` and the script will only be active if accepted by the user.

### Docs

[](#docs)

Please read the documentation for further information about how to customise klaro:

1. [Service management](docs/en/service_management.md)
2. [Translations](docs/en/translations.md)
3. [Styling](docs/en/styling.md)

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

[](#contributing)

See [CONTRIBUTION.md](CONTRIBUTION.md) for mor info.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance66

Regular maintenance activity

Popularity21

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~337 days

Total

8

Last Release

200d ago

Major Versions

1.4.0 → 6.0.02025-12-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/289446336e84f3a201ac80def6e4a2a5289815d628ad5e0c0aa57b2f4bc20e73?d=identicon)[mleutenegger](/maintainers/mleutenegger)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (11 commits)")[![mleutenegger](https://avatars.githubusercontent.com/u/1339379?v=4)](https://github.com/mleutenegger "mleutenegger (9 commits)")[![cotpat](https://avatars.githubusercontent.com/u/85751624?v=4)](https://github.com/cotpat "cotpat (3 commits)")

---

Tags

cookie-consentdsgvogdprgdpr-consentklarosilverstripesilverstripeKlaro

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/syntro-silverstripe-klaro/health.svg)

```
[![Health](https://phpackages.com/badges/syntro-silverstripe-klaro/health.svg)](https://phpackages.com/packages/syntro-silverstripe-klaro)
```

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1321.1M83](/packages/silverstripe-userforms)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46299.9k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/sharedraftcontent

Share draft page content with non-CMS users

21419.6k11](/packages/silverstripe-sharedraftcontent)

PHPackages © 2026

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