Download the PHP package ergebnis/factory-muffin-definition without Composer
On this page you can find all versions of the php package ergebnis/factory-muffin-definition. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ergebnis/factory-muffin-definition
More information about ergebnis/factory-muffin-definition
Files in ergebnis/factory-muffin-definition
Package factory-muffin-definition
Short Description Provides an interface for, and an easy way to find and register entity definitions for league/factory-muffin.
License MIT
Homepage https://github.com/ergebnis/factory-muffin-definition
Informations about the package factory-muffin-definition
factory-muffin-definition
Provides an interface for, and an easy way to find and register entity definitions for league/factory-muffin, inspired by ergebnis/factory-girl-definition.
Installation
Run
Usage
Create Definitions
Implement the Definition interface and use the instance of League\FactoryMuffin\FactoryMuffin
that is passed in 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 League\FactoryMuffin\FactoryMuffin
and use Definitions to find definitions and register them with the factory:
Contributing
Please have a look at CONTRIBUTING.md.
Code of Conduct
Please have a look at CODE_OF_CONDUCT.md.
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.