druidfi/drush-gdpr-dumper
最新稳定版本:4.0.0
Composer 安装命令:
composer require druidfi/drush-gdpr-dumper
包简介
A drop-in replacement for mysqldump that optionally sanitizes DB fields for better GDPR conformity.
README 文档
README
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 library, and can in principle dump any database that PDO supports.
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
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
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.
druidfi/gdpr-mysqldump contains more info about the gdpr-expressions and gdpr-replacement options.
Faker documentation lists all available formatters.
Events
The module dispatches two events:
GdprDumperEvents::GDPR_EXPRESSIONSGdprDumperEvents::GDPR_REPLACEMENTS
This allows developers to alter the expressions and replacements through event subscribers on run-time
Happy GDPR'ing!
Forked from
This tool is a fork if robiningelbrecht/drush-gdpr-dumper.
License
This component is under the GPL2 license. See the complete license in the LICENSE file.
Other information
This project can be found from the Packagist: https://packagist.org/packages/druidfi/drush-gdpr-dumper
druidfi/drush-gdpr-dumper 适用场景与选型建议
druidfi/drush-gdpr-dumper 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 81.94k 次下载、GitHub Stars 达 8, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 druidfi/drush-gdpr-dumper 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 druidfi/drush-gdpr-dumper 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 81.94k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-01-04