PHPackages                             pits/pits\_cookieconsent - 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. pits/pits\_cookieconsent

ActiveTypo3-cms-extension[Utility &amp; Helpers](/categories/utility)

pits/pits\_cookieconsent
========================

GDPR-compliant cookie consent solution for TYPO3 v14 and v13. Renders a fully customisable consent banner and preferences modal (vanilla Cookie Consent v3) with cookie categories, consent-based script blocking via TypoScript conditions and a backend module for managing services and cookies.

4.0.0(1mo ago)11.7k1[1 PRs](https://github.com/PIT-Solutions-Private-Limited/pits_cookieconsent/pulls)GPL-2.0-or-laterJavaScriptPHP ^8.2CI failing

Since Mar 26Pushed 1mo ago4 watchersCompare

[ Source](https://github.com/PIT-Solutions-Private-Limited/pits_cookieconsent)[ Packagist](https://packagist.org/packages/pits/pits_cookieconsent)[ RSS](/packages/pits-pits-cookieconsent/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (5)Versions (10)Used By (0)

PITS Cookie Consent
===================

[](#pits-cookie-consent)

**Compatible with TYPO3 v14 and v13.4 LTS** · PHP 8.3+ (PHP 8.2 on TYPO3 v13)

GDPR-compliant cookie consent extension for TYPO3 v14. It renders a fully customisable consent banner and preferences modal on every page, lets visitors accept or reject cookies per category, and keeps tracking scripts blocked until consent is given.

The frontend widget is powered by the bundled vanilla [Cookie Consent v3](https://github.com/orestbida/cookieconsent) JavaScript library (no jQuery required).

Features
--------

[](#features)

- Consent banner (consent modal) and detailed preferences modal, both fully configurable: layout, position, button weighting/order and light/dark theme
- Cookie categories: **necessary**, **analytics** and **marketing** — visitors can opt in/out per category
- All labels and texts (title, description, buttons, privacy policy link) are configurable via TypoScript constants and translatable; the consent modal description supports rich text (RTE)
- "Accept all" button available in the preferences modal in addition to the consent modal, with its own configurable text
- Consent-based script blocking through the `cookieAccepted("")`TypoScript condition, e.g. to keep Google Analytics disabled until the visitor accepts the analytics category
- Ships a site set (`pits/cookie-consent`) for modern site configuration, plus a classic static TypoScript template
- Optional "disable page interaction" mode that blocks the page until the visitor makes a choice
- Privacy policy link configurable to any TYPO3 page
- Backend module (Web &gt; PITS Cookie Consent) for administrators to manage cookie services, scripts and cookie records
- Frontend plugin can be placed as a content element and configured via FlexForm

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

[](#requirements)

DependencyVersionTYPO314 / 13.4 LTSPHP8.3+ (8.2 on v13)Installation
------------

[](#installation)

Via composer:

```
composer require pits/pits_cookieconsent
```

Or install `pits_cookieconsent` from the TYPO3 Extension Repository (TER) using the Extension Manager.

Setup
-----

[](#setup)

1. Include the extension's configuration in your site:

    - **Site set (recommended):** add the `pits/cookie-consent` set as a dependency in your site package's `config.yaml`, or select **PITS Cookie Consent** under "Sets for this Site" in the site configuration module, or
    - **Classic:** include the static TypoScript template **PITS Cookie Consent** in your TypoScript template record.
2. Adjust the settings via TypoScript constants (`plugin.tx_pitscookieconsent.settings.*`), e.g.:

    - `settings.general.theme`, `settings.general.disablePageInteraction`
    - `settings.consentModal.text.*` (title, description, accept all / accept necessary / show preferences buttons)
    - `settings.consentModal.footer.privacyPolicy.*` (link text and page uid)
    - `settings.consentModal.guiOptions.*` and `settings.preferencesModal.guiOptions.*` (layout, position, equalWeightButtons, flipButtons)
    - `settings.categories.*` (necessary, analytics, marketing)
3. Alternatively insert the **PITS Cookie Consent** plugin as a content element and configure the same options through its FlexForm.
4. Load tracking scripts only after consent using the TypoScript condition:

    ```
    [cookieAccepted("analytics")]
      page.999 = TEXT
      page.999.value =
    [global]

    ```
5. Manage cookie services and script records in the backend module **Web &gt; PITS Cookie Consent** (admin access).

Detailed documentation is available in the `Documentation/` folder.

Changelog
---------

[](#changelog)

### 4.0.0

[](#400)

- Compatibility with TYPO3 v14 (TYPO3 13.4 LTS remains supported)
- New "Accept all" button in the preferences modal with configurable text (new database field `preferences_accept_all_text` — run the database analyzer / `composer exec typo3 database:updateschema` after upgrading)
- Consent modal description is now rendered through `lib.parseFunc_RTE`, so rich text entered in the backend (links, formatting) is output correctly in the frontend
- Fixed localization of consent (optin) records: the translation parent field is now configured correctly so translating the default-language record no longer fails in the DataHandler
- Minor frontend fixes: button positioning and removal of leftover console output

### 3.1.1

[](#311)

- Removed the legacy `Classes/Userfunc` condition classes that extended `AbstractConditionMatcher` (removed from TYPO3 core in v12) and caused a fatal error while building the dependency injection container
- Consolidated the expression language providers; the TypoScript condition function is `cookieAccepted("")`

### 3.1.0

[](#310)

- Added the expression language condition provider registration

### 3.0.0

[](#300)

- Compatibility with TYPO3 13.4 LTS and PHP 8.2 – 8.4
- New site set `pits/cookie-consent` for modern site configuration (the classic static TypoScript template is still available)
- Script blocking now uses an expression language TypoScript condition with per-category checks (finalized as `cookieAccepted("")` in 3.1.1)
- Consent modal description supports rich text (RTE)

### 2.0.0

[](#200)

- Compatibility with TYPO3 12 LTS and PHP 8.1 – 8.3
- Frontend widget rewritten on top of the bundled vanilla [Cookie Consent v3](https://github.com/orestbida/cookieconsent) library — jQuery is no longer required
- New consent banner and preferences modal with configurable layout, position, button weighting/order and light/dark theme
- Cookie categories (**necessary**, **analytics**, **marketing**) with per-category opt-in/opt-out
- New backend module (Web &gt; PITS Cookie Consent) for managing cookie services, scripts and cookie records
- Optional "disable page interaction" mode
- All texts configurable via TypoScript constants / FlexForm and translatable

### 1.1.x (2019)

[](#11x-2019)

- Compatibility with TYPO3 9 LTS
- Fixed cookie handling for the current host
- Fixed opt-out button mismatch
- General bugfixes and dependency updates

### 1.0.0 (2018)

[](#100-2018)

- Initial release: cookie consent banner with script blocking via the `Cookiecheck` TypoScript condition

License
-------

[](#license)

GPL-2.0-or-later. The bundled Cookie Consent JavaScript library is MIT licensed — see [its LICENSE](Resources/Public/Javascript/cookieconsent/LICENSE).

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance94

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 53.3% 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 ~533 days

Recently: every ~1 days

Total

6

Last Release

32d ago

Major Versions

1.1.0 → 2.0.02026-07-10

2.0.0 → 3.0.02026-07-10

3.1.1 → 4.0.02026-07-13

PHP version history (2 changes)2.0.0PHP ^8.1

3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/5489b5f687c4cb31a7fe59de75d84abc3554e14b8e05ef4b55b1ae63d4d5db99?d=identicon)[pitsolutionstypo3](/maintainers/pitsolutionstypo3)

---

Top Contributors

[![AnuBN](https://avatars.githubusercontent.com/u/18255272?v=4)](https://github.com/AnuBN "AnuBN (8 commits)")[![pitssavinmb](https://avatars.githubusercontent.com/u/164833667?v=4)](https://github.com/pitssavinmb "pitssavinmb (7 commits)")

---

Tags

cookieTYPO3 CMSgdprprivacycookie-consent

### Embed Badge

![Health badge](/badges/pits-pits-cookieconsent/health.svg)

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

###  Alternatives

[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103574.3k68](/packages/friendsoftypo3-content-blocks)[eliashaeussler/typo3-form-consent

Extension for TYPO3 CMS that adds double opt-in functionality to EXT:form

15100.9k](/packages/eliashaeussler-typo3-form-consent)[yoast-seo-for-typo3/yoast_seo

Yoast SEO for TYPO3

571.8M9](/packages/yoast-seo-for-typo3-yoast-seo)[eliashaeussler/typo3-warming

Warming - Warms up Frontend caches based on an XML sitemap. Cache warmup can be triggered via TYPO3 backend or using a console command. Supports multiple languages and custom crawler implementations.

22272.4k](/packages/eliashaeussler-typo3-warming)[pagemachine/typo3-formlog

Form log for TYPO3

23243.0k8](/packages/pagemachine-typo3-formlog)[friendsoftypo3/visual-editor

TYPO3 CMS Visual Editor - Brings a modern WYSIWYG editing experience to TYPO3 CMS.

6010.0k3](/packages/friendsoftypo3-visual-editor)

PHPackages © 2026

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