承接 kunstmaan/anomy-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kunstmaan/anomy-bundle

Composer 安装命令:

composer require kunstmaan/anomy-bundle

包简介

The Kunstmaan Anomy Bundle provides a symfony command to use a mysql dump and anonymize it wiht Faker.

README 文档

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

统计信息

  • 总下载量: 33
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 12
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固