Download the PHP package zenify/doctrine-fixtures without Composer
On this page you can find all versions of the php package zenify/doctrine-fixtures. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zenify/doctrine-fixtures
More information about zenify/doctrine-fixtures
Files in zenify/doctrine-fixtures
Package doctrine-fixtures
Short Description Doctrine Fixtures, Faker and Alice integration into Nette
License MIT
Informations about the package doctrine-fixtures
Doctrine Fixtures
Integration of nelmio/alice to Nette DI.
This package adds .neon
support to Alice.
Alice uses fzaninotto/Faker to generate fake data, so be sure to check that too.
Install
Register extensions:
Configuration
For all supported locales, just check Faker Providers.
Usage
We can load .neon
/.yaml
with specific fixtures structure. Alice turns them into entities and inserts them to database. To understand fixture files, just check the README of nelmio/alice.
For example, this fixture will create 100 products with generated name:
fixtures/products.neon
You can also include other fixtures
fixtures/products.neon
fixtures/categories.neon
And then we can load them:
That's it!
Testing
Contributing
Rules are simple:
- new feature needs tests
- all tests must pass
- 1 feature per PR
We would be happy to merge your feature then!
All versions of doctrine-fixtures with dependencies
fzaninotto/faker Version ~1.6
nelmio/alice Version ~2.2
kdyby/doctrine Version ~3.1
nette/di Version ~2.4
nette/finder Version ~2.4
nette/reflection Version ~2.4
symfony/console Version ^3.0
tracy/tracy Version ~2.4