---
title: "Composer"
manual: "Klaro! Consent Manager"
version: "main"
permalink: "https://docs.typo3.org/permalink/erhaweb/klaro-consent-manager:installation-composer@main"
source: "Installation/Composer/Index.rst"
rendered: "2026-09-24T10:59:30+00:00"
---

# Composer {#installation-composer}

To install this extension with Composer, you must first define the package as a composer requirement and then perform a database update.

## Install the extension {#install-the-extension}

In your command line interface, change to the root directory of your project (where the `composer.json` of your project is located) and enter the following command:

```bash
composer require erhaweb/klaro-consent-manager
```

or with ddev:

```bash
ddev composer require erhaweb/klaro-consent-manager
```

## Apply database changes {#apply-database-changes}

Follow the steps below to make all necessary database changes:

1.  Open the TYPO3 backend.
1.  Open the Maintenance module. See [Compatibility](https://docs.typo3.org/permalink/erhaweb/klaro-consent-manager:compatibility@main) for the complete
    TYPO3 v13/v14 backend path overview.

    | TYPO3 v13 | TYPO3 v14 |
    | --- | --- |
    | **Admin Tools** → **Maintenance** | **System** → **Maintenance** |
1.  In the card **Analyze Database Structure** click **Analyze database…**

    The following database changes are proposed:

    ![Maintenance module with proposed database schema changes for the Klaro extension](../../Images/Maintenance-AnalyzeDatabaseStructure.png)
1.  Click the button **Apply selected changes**

> [!TIP]
> In Composer-based installations, you can also apply extension schema
> changes with the TYPO3 core command:
>
> ```bash
> vendor/bin/typo3 extension:setup
> ```
>
> or with ddev:
>
> ```bash
> ddev typo3 extension:setup
> ```

> [!NOTE]
> **Why a database update?**
>
> This extension uses the database and the TYPO3 [FormEngine](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/FormEngine/Index.html#FormEngine) to let you create the Klaro configuration in a nice GUI in the backend.
>
> For this purpose, the tables `tx_klaroconsentmanager_configuration`, `tx_klaroconsentmanager_service` and `tx_klaroconsentmanager_cookie` must be created. In addition, a field must be added to the `tt_content` table in order to be able to implement the [contextual consent feature](https://docs.typo3.org/permalink/erhaweb/klaro-consent-manager:features-contextual-consent@main) at content level.

After installation and database setup, continue with [Quick start](https://docs.typo3.org/permalink/erhaweb/klaro-consent-manager:quickstart@main).
