Download the PHP package gsylvestre/symfony-faker-fixtures without Composer
On this page you can find all versions of the php package gsylvestre/symfony-faker-fixtures. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gsylvestre/symfony-faker-fixtures
More information about gsylvestre/symfony-faker-fixtures
Files in gsylvestre/symfony-faker-fixtures
Package symfony-faker-fixtures
Short Description Fast generation of realistic fake datas for your database. Symfony/Doctrine/Faker/Make super combo.
License MIT
Homepage https://github.com/gsylvestre/symfony-faker-fixtures
Informations about the package symfony-faker-fixtures
Faker Fixtures Maker for Symfony
This bundle allows fast generation of realistic fake datas for your database, in the make
style that we love. Huge thanks to the wonderfull Faker library.
Main features
- Zero config, easy to use
- Faker method selection based on entities attributes
- Handling of associations
- Fixtures order based on association dependencies
- For Symfony 4+
Installation
Open a command console, enter your project directory and execute:
How to use
-
Generate your new fixture command with:
- Load magic datas in your database with:
Editing the fixtures
This bundle generates fixtures for you. Once done, you are free to edit them.
If needed (and it should), edit the generated FakerFixturesCommand.php
:
- To adapt the number of entities to generate, or the order
- To adapt the Faker methods used and/or the logic
Start over?
If you ever need to regenerates all your fixtures, you can do so by running:
Be aware that you will lose all changes made to your fixtures command!
Localize faker datas?
If you want your generated datas localized, run:
Installation without Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
Notes
This bundle deliberately does not use DoctrineFixturesBundle in any way.
All versions of symfony-faker-fixtures with dependencies
ext-mbstring Version *
fzaninotto/faker Version 1.*
symfony/config Version ^4.0|^5.0
symfony/console Version ^4.0|^5.0
symfony/filesystem Version ^4.0|^5.0
symfony/finder Version ^4.0|^5.0
symfony/framework-bundle Version ^4.0|^5.0
symfony/http-kernel Version ^4.0|^5.0
symfony/maker-bundle Version ^1.13
symfony/orm-pack Version ^1.0