doctrine-fixtures/data-generation-bundle
Composer 安装命令:
composer require doctrine-fixtures/data-generation-bundle
包简介
Generate test data for development and testing
README 文档
README
This bundle aims to assist developers to generate random data for development and testing purposes.
Installation
composer require --dev "doctrine-fixtures/data-generation-bundle"
Create file fixtures-config.yml in root of your project:
# fixtures-config.yml user: namespace: App\Entity\User defined_roles: - ROLE_USER - ROLE_ADMIN - ROLE_SUPER_ADMIN - ROLE_ALLOWED_TO_SWITCH rows: 500 entities: article: namespace: App\Entity\Article construct: true # Expects some class as constructor argument rows: 100 article_page: namespace: App\Entity\ArticlePage rows: 60
User data
Users with email, password, roles
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-12-23