{"id":20613241,"url":"https://github.com/robiningelbrecht/drush-gdpr-dumper","last_synced_at":"2025-04-15T07:11:06.433Z","repository":{"id":49243487,"uuid":"164838810","full_name":"robiningelbrecht/drush-gdpr-dumper","owner":"robiningelbrecht","description":"A drop-in replacement for drush sql-dump that optionally sanitizes DB fields for better GDPR conformity.","archived":false,"fork":false,"pushed_at":"2021-06-22T07:05:49.000Z","size":39,"stargazers_count":8,"open_issues_count":4,"forks_count":5,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-28T17:34:32.323Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robiningelbrecht.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-09T10:11:33.000Z","updated_at":"2025-03-03T21:52:05.000Z","dependencies_parsed_at":"2022-09-21T12:44:03.346Z","dependency_job_id":null,"html_url":"https://github.com/robiningelbrecht/drush-gdpr-dumper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fdrush-gdpr-dumper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fdrush-gdpr-dumper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fdrush-gdpr-dumper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robiningelbrecht%2Fdrush-gdpr-dumper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robiningelbrecht","download_url":"https://codeload.github.com/robiningelbrecht/drush-gdpr-dumper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249023725,"owners_count":21199960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T11:09:14.027Z","updated_at":"2025-04-15T07:11:06.415Z","avatar_url":"https://github.com/robiningelbrecht.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drush GDPR Dumper\n\nA drop-in replacement for drush sql-dump that optionally sanitizes DB fields for better GDPR conformity.\n\nIt is based on the [machbarmacher/gdpr-dump](https://github.com/machbarmacher/gdpr-dump) library, \nand can in principle dump any database that PDO supports. \n\n## Drush\n\nIf you want to create an sql dump on live servers for local purposes (as a developer, themer, ...), \nyou should use following command:\n\n```\ndrush sql-dump-gdpr \u003e file.sql\n```\n\ninstead of \n\n```\ndrush sql-dump \u003e file.sql\n```\n\n`drush sql-dump-gdpr` will automatically strip all GDPR related data from the sql dump to help you \nbe GDPR compliant YO!\n\n## Configuration\n\nIn settings.php you can do the override configuration like this:\n\n```\n$config['gdpr_dumper.settings']['gdpr_replacements'] = [\n  'users_field_data' =\u003e [ // Table\n    'name' =\u003e [ // Field\n      'formatter' =\u003e 'userName', // Faker formatter\n    ],\n  ],\n];\n```\n\nThis module can be configured by editing the `gdpr_dumper.settings.yml` [file](config/install/gdpr_dumper.settings.yml).\n\n[druidfi/gdpr-mysqldump](https://github.com/druidfi/gdpr-mysqldump) contains more info about\nthe **gdpr-expressions** and **gdpr-replacement** options.\n\n[Faker](https://fakerphp.github.io/) documentation lists all available formatters.\n\n## Events\n\nThe module dispatches two events:\n* `GdprDumperEvents::GDPR_EXPRESSIONS`\n* `GdprDumperEvents::GDPR_REPLACEMENTS`\n \nThis allows developers to alter the expressions and replacements through event subscribers on run-time\n\nHappy GDPR'ing!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobiningelbrecht%2Fdrush-gdpr-dumper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobiningelbrecht%2Fdrush-gdpr-dumper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobiningelbrecht%2Fdrush-gdpr-dumper/lists"}