PHPackages                             richardhj/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. richardhj/privacy-dump

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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

A utility to create anonymized database dumps

02.3k[1 issues](https://github.com/richardhj/privacy-dump/issues)PHP

Since Jul 7Pushed 5y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

Create purged and anonymized MySQL database dumps

About
-----

[](#about)

This package provides a framework-agnostic database backup manager 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:

- 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/privacy-dump

```

Other integrations
------------------

[](#other-integrations)

To use in a Symfony project, use [`richardhj/privacy-dump-bundle`](https://github.com/richardhj/privacy-dump-bundle).

Usage
-----

[](#usage)

```
// 1. Define configuration

$options = [
    'database' => [],
    'dump' => [],
    'tables_include' => [],
    'tables_exclude' => [],
    'tables' => [],
];

// 2. Create configuration instance

$config = new \Richardhj\PrivacyDump\Config\Config($options);

// 3. Dump

$dumper = new SqlDumper();
$dumper->dump($config, 'file.sql');
```

For the full options, please relate to .

Credits and License
-------------------

[](#credits-and-license)

This project is a modification of [Smile-SA/gdpr-dump](https://github.com/Smile-SA/gdpr-dump) and thus licensed under the same [GPLv3 License](LICENSE.md).

Changes made on the original package:

- Refactoring from standalone application to installable package
- Changes in configuration

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

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 (1 commits)")

### Embed Badge

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

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

###  Alternatives

[verbb/field-manager

Manage your fields and field groups with ease.

197607.5k10](/packages/verbb-field-manager)[naneau/php-obfuscator

A basic but functional PHP obfuscator for object oriented PHP

6023.6k](/packages/naneau-php-obfuscator)[lukasbesch/bedrock-plugin-disabler

Disable certain plugins in non-production environments using PHP constants.

5585.7k](/packages/lukasbesch-bedrock-plugin-disabler)[lara-zeus/inline-chart

Zeus Inline Chart easily add a chart in filamentPHP table column

2139.9k](/packages/lara-zeus-inline-chart)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1414.8k](/packages/pdir-social-feed-bundle)[ruskid/yii2-ip-behavior

Yii2 Behavior that records User IP address on Updates/Inserts

109.9k](/packages/ruskid-yii2-ip-behavior)

PHPackages © 2026

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