PHPackages                             oliverkroener/ok-cookiebot - 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. oliverkroener/ok-cookiebot

ActiveTypo3-cms-extension

oliverkroener/ok-cookiebot
==========================

Provides a backend module to manage privacy cookie consent scripts for Cookiebot.

05JavaScript

Since Oct 7Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/oliverkroener/ok_cookiebot)[ Packagist](https://packagist.org/packages/oliverkroener/ok-cookiebot)[ RSS](/packages/oliverkroener-ok-cookiebot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

Cookiebot Cookie Consent (ok\_cookiebot)
========================================

[](#cookiebot-cookie-consent-ok_cookiebot)

[![TYPO3 12](https://camo.githubusercontent.com/2684d7b10857a7fbe915ab7d09d7f77e12dd4ad82d59d74d33de17e09c6939a6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5459504f332d31322d6f72616e67653f6c6f676f3d7479706f33)](https://get.typo3.org/version/12)[![TYPO3 13](https://camo.githubusercontent.com/dd8defc1bd50d5ea9806215644f9b57c5c16a94a7dd0fc400d4b9ff87e3a7874/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5459504f332d31332d6f72616e67653f6c6f676f3d7479706f33)](https://get.typo3.org/version/13)[![TYPO3 14](https://camo.githubusercontent.com/e529124be6a5d4fa54f1e7947268a827ebb324837ad7d64b2eaf2dea68a14b83/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5459504f332d31342d6f72616e67653f6c6f676f3d7479706f33)](https://get.typo3.org/version/14)[![License: GPL v2+](https://camo.githubusercontent.com/6453309dcfa061355d200754f7c0067d22bebd9d9c754ce6b9216176e797e8ee/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076322532422d626c7565)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)[![Version](https://camo.githubusercontent.com/898acdccff35279368fa940cff2d39496aa631af812204c2a7d9db3200ae75f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e302e302d677265656e)](https://github.com/okroener/ok_cookiebot)

TYPO3 extension that provides a backend module to manage Cookiebot cookie consent banner and declaration scripts per site.

Features
--------

[](#features)

- **Backend module** under the "Web" section with page tree navigation for managing Cookiebot scripts per site
- **Two script fields**: banner script (rendered in ``) and declaration script (rendered before ``)
- **Per-site configuration**: scripts are stored per site root in `sys_template` records
- **Automatic frontend rendering** via TypoScript `USER` objects (`lib.cookiebotHeadScript` / `lib.cookiebotBodyScript`)
- **Multi-language backend**: English and German translations
- **Custom SVG icon** for the backend module

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

[](#requirements)

- TYPO3 12.4 LTS, 13.4 LTS, or 14.x
- PHP (no explicit constraint — follows TYPO3 core requirements)

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

[](#installation)

### Composer

[](#composer)

```
composer require oliverkroener/ok-cookiebot
```

### Local path repository

[](#local-path-repository)

Add to your root `composer.json`:

```
{
    "repositories": [
        {
            "type": "path",
            "url": "packages/ok_cookiebot"
        }
    ]
}
```

Then run:

```
composer require oliverkroener/ok-cookiebot:@dev
```

### Activate

[](#activate)

After installation, include the static TypoScript template **\[kroener.DIGITAL\] Cookiebot** in your site's template record.

Configuration
-------------

[](#configuration)

### TypoScript

[](#typoscript)

Include the static template to enable automatic frontend script rendering. The extension registers two TypoScript objects:

ObjectPlacementDescription`lib.cookiebotHeadScript``page.headerData.261487170`Renders the banner script in ```lib.cookiebotBodyScript``page.footerData.261487170`Renders the declaration script before ``### Backend Module

[](#backend-module)

1. Navigate to **Web &gt; Cookiebot** in the TYPO3 backend
2. Select a page within a site that has a root template
3. Paste the Cookiebot banner script (for ``) and declaration script (for ``)
4. Click **Save**

Scripts are stored in the `sys_template` record of the site root page via custom fields `tx_ok_cookiebot_banner_script` and `tx_ok_cookiebot_declaration_script`.

Architecture
------------

[](#architecture)

```
ok_cookiebot/
├── Classes/
│   ├── Controller/Backend/
│   │   └── ConsentController.php      # Backend module controller (index + save)
│   └── Rendering/
│       └── CookiebotScriptRenderer.php # Frontend TypoScript USER renderer
├── Configuration/
│   ├── Backend/Modules.php             # Backend module registration
│   ├── Icons.php                       # SVG icon registration
│   ├── Services.yaml                   # DI autowiring
│   ├── TCA/Overrides/sys_template.php  # Static TypoScript file registration
│   └── TypoScript/setup.typoscript     # Frontend script rendering setup
├── Resources/
│   ├── Private/
│   │   ├── Language/                   # XLIFF translations (en, de)
│   │   └── Templates/Backend/          # Fluid backend templates
│   └── Public/
│       ├── Css/                        # Backend module stylesheets
│       ├── Icons/                      # Extension & module icons
│       └── JavaScript/                 # Backend module JavaScript
└── ext_localconf.php                   # TypoScript setup import

```

License
-------

[](#license)

GPL-2.0-or-later

Author
------

[](#author)

**Oliver Kroener** — [oliver-kroener.de](https://www.oliver-kroener.de) —

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance59

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e3131f46d9c0fc7766936f374848d0ab6be6f8095f2f2c01984736a5e7fcd52?d=identicon)[Oliver Kroener](/maintainers/Oliver%20Kroener)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/oliverkroener-ok-cookiebot/health.svg)

```
[![Health](https://phpackages.com/badges/oliverkroener-ok-cookiebot/health.svg)](https://phpackages.com/packages/oliverkroener-ok-cookiebot)
```

PHPackages © 2026

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