PHPackages                             richardhj/contao-privacy-dump - 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. [Database &amp; ORM](/categories/database)
4. /
5. richardhj/contao-privacy-dump

ActiveContao-bundle[Database &amp; ORM](/categories/database)

richardhj/contao-privacy-dump
=============================

Create anonymized dumps of the Contao database.

21.5k1[1 PRs](https://github.com/richardhj/contao-privacy-dump/pulls)PHP

Since Dec 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/richardhj/contao-privacy-dump)[ Packagist](https://packagist.org/packages/richardhj/contao-privacy-dump)[ RSS](/packages/richardhj-contao-privacy-dump/feed)WikiDiscussions main Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![](/docs/logo.svg)](/docs/logo.svg)

A Contao plugin to create a purged and anonymized database dump

About
-----

[](#about)

This Symfony bundle provides utilities for creating anonymized database dumps.

It is the equivalent of `mysqldump`, with additional features, at the cost of performance (PHP implementation). The main purpose of this tool is to create anonymized dumps, in order to comply with GDPR regulations.

Features
--------

[](#features)

- Data converters (transform the data before it is dumped to the file)
- Table filtering
- Tables include list (only these tables will be included in the dump)
- Tables exclude list (not included in the dump)

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

[](#installation)

```
composer require richardhj/contao-privacy-dump
```

Usage
-----

[](#usage)

```
php vendor/bin/contao-console privacy-dump contao contao --filename dump.sql
```

[![](/docs/screenshot_tl_member.png)](/docs/screenshot_tl_member.png)

Importing the anonymized dump
-----------------------------

[](#importing-the-anonymized-dump)

In combination with `richardhj/contao-backup-manager`:

1. Create anonymized dump on the remote system.
2. Download the anonymized dump (with `scp`) and place the file in `/backups`.
3. Import the purged database dump on your local machine.

```
php vendor/bin/contao-console backup-manager:restore contao local dump.sql
```

This workflow can be represented in a Deployer recipe, see [these recipes](https://github.com/terminal42/deployer-recipes/blob/master/recipe/database-helpers.php).

Make sure to call the restore command in the correct instance!

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

[](#configuration)

The plugin is pre-configured to purge personal data in tl\_member, tl\_opt\_in and the like.

You can override and extend the configuration:

```
richardhj_privacy_dump:
  config:
    contao:
      tables:
        tl_my_custom_table:
          truncate: true

        tl_iso_address:
          converters:
            firstname:
              converter: 'anonymizeText'
            lastname:
              converter: 'anonymizeText'
            street:
              converter: 'anonymizeText'
            company:
              converter: 'anonymizeText'
            email:
              converter: 'randomizeEmail'
              cache_key: 'member_email'
              unique: true
            username:
              converter: 'randomizeEmail'
              cache_key: 'member_email'
              unique: true
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity28

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://avatars.githubusercontent.com/u/1284725?v=4)[Richard Henkenjohann](/maintainers/richardhj)[@richardhj](https://github.com/richardhj)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/richardhj-contao-privacy-dump/health.svg)

```
[![Health](https://phpackages.com/badges/richardhj-contao-privacy-dump/health.svg)](https://phpackages.com/packages/richardhj-contao-privacy-dump)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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