kunstmaan / anomy-bundle
The Kunstmaan Anomy Bundle provides a symfony command to use a mysql dump and anonymize it wiht Faker.
Installs: 33
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 15
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6
- doctrine/orm: ^2.2.3
- sandergo90/neuralyzer: ~2.0
- symfony/symfony: ~3.4
This package is auto-updated.
Last update: 2024-10-29 05:40:29 UTC
README
The Kunstmaan Anomy Bundle provides a symfony command to use a mysql dump and anonymize it wiht Faker.
Enabling the bundle
Add to Appkernel.php
Configure the bundle in your config.yml file.
Configuration reference:
The following parameters need to be provided. The database_user should be a mysql user that can create databases.
kunstmaan_anomy:
config_file: /home/projects/foo//anon.yml
backup_dir: /home/projects/foo/backup
database_user: 'root'
database_password: 'root'
anon.yml file in your project
The entities array contains all tables and the columns which you would like to fake. Methods can be found at https://github.com/fzaninotto/Faker.
The locale will be used to do some extra stuff with faker locale based like a BTW number.
guesser_version: 1.0.0b
locale: nl_BE
entities:
kuma_users:
cols:
username: { method: safeEmail }
username_canonical: { method: safeEmail }
email: { method: safeEmail }
email_canonical: { method: safeEmail }
Commands
php bin/console kuma:anonymize:database
If you add -v, you can see more information being dumpted to the screen.
Contributing
We love contributions! If you're submitting a pull request, please follow the guidelines in the Submitting pull requests