PHPackages                             dbrekelmans/gdpr-tools - 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. dbrekelmans/gdpr-tools

Abandoned → [dbrekelmans/gdpr-tools](/?search=dbrekelmans%2Fgdpr-tools)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

dbrekelmans/gdpr-tools
======================

Tools to help with GDPR compliance.

12.8kPHP

Since Jul 5Pushed 7y ago1 watchersCompare

[ Source](https://github.com/dbrekelmans/gdpr-tools)[ Packagist](https://packagist.org/packages/dbrekelmans/gdpr-tools)[ RSS](/packages/dbrekelmans-gdpr-tools/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

GDPR-Tools
==========

[](#gdpr-tools)

TODO
----

[](#todo)

- Support presets and custom for truncate configuration
- Check if unique generated value already exists in current database (otherwise get duplicate constraint on UPDATE because we update row by row)
- Polish README
- Document yaml configuration specifications on github wiki
- Support table name prefix for configuration presets

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

[](#installation)

```
composer require dbrekelmans/gdpr-tools

```

Usage
-----

[](#usage)

```
php vendor/dbrekelmans/gdpr-tools/console.php

```

Commands
--------

[](#commands)

CommandDescriptionArguments`db:anonymise`Anonymises database based on a yaml configuration.**file** - A yaml configuration file, must end with `.yml`. See *Configuration* for details.`db:truncate`Truncates database tables based on a yaml configuration.**file** - A yaml configuration file, must end with `.yml`. See *Configuration* for details.Configuration
-------------

[](#configuration)

### Types

[](#types)

TypeOptionsDescription`string``minlength`, `maxlength`Random string of a-z characters with length between `minlength` and `maxlength`.`int``min`, `max`A random integer between `min` and `max` (inclusive).`email`Valid email address.`ip`Valid IPv4 address.`regex``pattern`Random string based on regex `pattern`.`null`A NULL value.`password``encryption`Password with a certain `encryption`.#### Example

[](#example)

```
database:
  scheme: pdo_mysql
  host: 127.0.0.1
  port: 3306
  name: dbname
  user: dbuser
  password: dbpass

truncate:
  - webform_submissions
  - webform_submissions_data

anonymise:
  presets:
    - drupal8

  custom:
    anonymise_example:
      email:
        type:
          name: email
        unique: true
      password:
        type:
          name: password
          options:
            encryption: sha512
      name:
        type:
          name: string|null
      ip:
        type:
          name: ip
      number:
        type:
          name: int|null
          options:
            min: 0
            max: 100

  exclude:
    drupal8:
      users_field_data:
        uid:
          - 0
          - 1
          - 46
    custom:
      anonymise_example:
        id:
          - 2
          - 5
        email:
          - example@example.com
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

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://www.gravatar.com/avatar/8b06eb04697759a60b73f33b31d8d206d75fc4709227ab39d06ba0d36fd7ac7c?d=identicon)[dbrekelmans](/maintainers/dbrekelmans)

### Embed Badge

![Health badge](/badges/dbrekelmans-gdpr-tools/health.svg)

```
[![Health](https://phpackages.com/badges/dbrekelmans-gdpr-tools/health.svg)](https://phpackages.com/packages/dbrekelmans-gdpr-tools)
```

###  Alternatives

[sensiolabs/insight

SymfonyInsight SDK

8117.8k](/packages/sensiolabs-insight)

PHPackages © 2026

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