Download the PHP package ergebnis/factory-girl-definition without Composer
On this page you can find all versions of the php package ergebnis/factory-girl-definition. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ergebnis/factory-girl-definition
More information about ergebnis/factory-girl-definition
Files in ergebnis/factory-girl-definition
Package factory-girl-definition
Short Description Provides an interface for, and an easy way to find and register entity definitions for breerly/factory-girl-php.
License MIT
Homepage https://github.com/ergebnis/factory-girl-definition
Informations about the package factory-girl-definition
factory-girl-definition
Provides an interface for, and an easy way to find and register entity definitions for breerly/factory-girl-php
.
Installation
Run
Usage
Create Definitions
Implement one of the
Ergebnis\FactoryGirl\Definition\Definition
Ergebnis\FactoryGirl\Definition\FakerAwareDefinition
interfaces and use the instance of FactoryGirl\Provider\Doctrine\FixtureFactory
that is passed into accept()
to define entities:
:bulb: Any number of entities can be defined within a definition. However, it's probably a good idea to create a definition for each entity.
Register Definitions
Lazily instantiate an instance of FactoryGirl\Provider\Doctrine\FixtureFactory
and use Definitions
to find definitions, register definitions with the
fixture factory, and optionally provide definitions with an instance of
Faker\Generator
:
Contributing
Please have a look at CONTRIBUTING.md
.
Code of Conduct
Please have a look at CODE_OF_CONDUCT.md
.
This package is licensed using the MIT License.
License
This package is licensed using the MIT License.
Please have a look at LICENSE.md
.
Curious what I am building?
:mailbox_with_mail: Subscribe to my list, and I will occasionally send you an email to let you know what I am working on.
All versions of factory-girl-definition with dependencies
breerly/factory-girl-php Version ^1.0.3
ergebnis/classy Version ~0.5.0
fzaninotto/faker Version ^1.9.0