PHPackages                             druidfi/drush-gdpr-dumper - 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. druidfi/drush-gdpr-dumper

AbandonedArchivedDrupal-module[Database &amp; ORM](/categories/database)

druidfi/drush-gdpr-dumper
=========================

A drop-in replacement for mysqldump that optionally sanitizes DB fields for better GDPR conformity.

4.0.0(1y ago)885.6k↓37.2%2GPL-2.0-or-laterPHPPHP ^8.2

Since Jun 24Pushed 1y agoCompare

[ Source](https://github.com/druidfi/drush-gdpr-dumper)[ Packagist](https://packagist.org/packages/druidfi/drush-gdpr-dumper)[ RSS](/packages/druidfi-drush-gdpr-dumper/feed)WikiDiscussions main Synced 1mo ago

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

Drush GDPR Dumper
=================

[](#drush-gdpr-dumper)

A drop-in replacement for drush sql-dump that optionally sanitizes DB fields for better GDPR conformity.

It is based on the [druidfi/gdpr-mysqldump](https://github.com/druidfi/gdpr-mysqldump) library, and can in principle dump any database that PDO supports.

Install
-------

[](#install)

Require druidfi/gdpr-mysqldump with Composer:

```
composer require druidfi/drush-gdpr-dumper
```

Enable the module in Drupal UI or with Drush:

```
drush en gdpr_dumper
```

Drush
-----

[](#drush)

If you want to create a sql dump on live servers for local purposes (as a developer, themer, ...), you should use following command:

```
drush sql-dump-gdpr > dump.sql
```

instead of

```
drush sql-dump > dump.sql
```

`drush sql-dump-gdpr` will automatically strip all GDPR related data from the sql dump to help you be GDPR compliant YO!

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

[](#configuration)

In settings.php you can do the override configuration like this:

```
$config['gdpr_dumper.settings']['gdpr_replacements'] = [
  'users_field_data' => [ // Table
    'name' => [ // Field
      'formatter' => 'userName', // Faker formatter
    ],
  ],
];
```

This module can be configured by editing the `gdpr_dumper.settings.yml` [file](config/install/gdpr_dumper.settings.yml).

[druidfi/gdpr-mysqldump](https://github.com/druidfi/gdpr-mysqldump) contains more info about the **gdpr-expressions** and **gdpr-replacement** options.

[Faker](https://fakerphp.github.io/) documentation lists all available formatters.

Events
------

[](#events)

The module dispatches two events:

- `GdprDumperEvents::GDPR_EXPRESSIONS`
- `GdprDumperEvents::GDPR_REPLACEMENTS`

This allows developers to alter the expressions and replacements through event subscribers on run-time

Happy GDPR'ing!

Forked from
-----------

[](#forked-from)

This tool is a fork if [robiningelbrecht/drush-gdpr-dumper](https://github.com/robiningelbrecht/drush-gdpr-dumper).

License
-------

[](#license)

This component is under the GPL2 license. See the complete license in the LICENSE file.

Other information
-----------------

[](#other-information)

This project can be found from the Packagist:

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance47

Moderate activity, may be stable

Popularity37

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 83.1% 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 ~115 days

Recently: every ~49 days

Total

13

Last Release

399d ago

Major Versions

1.2.0 → 2.0.02023-06-06

2.x-dev → 3.0.02024-08-09

2.0.0-rc1 → 4.0.02025-04-15

PHP version history (3 changes)1.1.0PHP ^7.4 || ^8.0

2.x-devPHP ^8.1

2.0.0-rc1PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/4cd9c5f6ffd2d6019f8375ce471fd34395c78885b9b9cf22e9a97be47c875138?d=identicon)[back-2-95](/maintainers/back-2-95)

---

Top Contributors

[![back-2-95](https://avatars.githubusercontent.com/u/1140272?v=4)](https://github.com/back-2-95 "back-2-95 (59 commits)")[![robiningelbrecht](https://avatars.githubusercontent.com/u/203894?v=4)](https://github.com/robiningelbrecht "robiningelbrecht (9 commits)")[![anotherjames](https://avatars.githubusercontent.com/u/557181?v=4)](https://github.com/anotherjames "anotherjames (2 commits)")[![sonnykt](https://avatars.githubusercontent.com/u/167788?v=4)](https://github.com/sonnykt "sonnykt (1 commits)")

### Embed Badge

![Health badge](/badges/druidfi-drush-gdpr-dumper/health.svg)

```
[![Health](https://phpackages.com/badges/druidfi-drush-gdpr-dumper/health.svg)](https://phpackages.com/packages/druidfi-drush-gdpr-dumper)
```

###  Alternatives

[drupal-composer/drupal-project

Project template for Drupal 10 projects with Composer

1.6k829.0k](/packages/drupal-composer-drupal-project)[jigarius/drall

Drall is a command-line utility to run drush on multi-site Drupal installations.

35105.9k](/packages/jigarius-drall)[drupalcommerce/project-base

Commerce 2.x project template

5451.6k](/packages/drupalcommerce-project-base)[fourkitchens/sous-drupal-project

Starter project for Sous a Drupal distribution featuring a theme based on Emulsify Design System.

151.0k](/packages/fourkitchens-sous-drupal-project)[chromatic/usher

A collection of Robo commands for use on Chromatic projects.

13534.3k1](/packages/chromatic-usher)[centarro/commerce-kickstart-project

Centarro Commerce Kickstart 5.x project template

3116.2k](/packages/centarro-commerce-kickstart-project)

PHPackages © 2026

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