doctrine-fixtures / data-generation-bundle
Generate test data for development and testing
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.2.5
- symfony/framework-bundle: ^5.4
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