Download the PHP package buildotter/php-maker-standalone without Composer
On this page you can find all versions of the php package buildotter/php-maker-standalone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download buildotter/php-maker-standalone
More information about buildotter/php-maker-standalone
Files in buildotter/php-maker-standalone
Package php-maker-standalone
Short Description Generate test data builder based on Buildotter Core
License GPL-3.0-or-later
Homepage https://github.com/buildotter/php-maker-standalone
Informations about the package php-maker-standalone
Buildotter Maker Standalone
Generate test data builder based on Buildotter Core.
This "standalone maker" tries to be agnostic of the framework you are using or not.
If you want to know more about Buildotter, check Buildotter Core.
Installation
Usage
To generate a builder and the functions following Buildotter Core, let yourself be carried by the interactive command:
You'll have some editing to do after the generation.
Note that the generated code may not comply with your project's coding standards. We work on the assumption that you have a tool that fixes the code style automatically.
The default behavior is opinionated.
For instance, we like to use functions like anElephant()
instead of ElephantBuilder::random()
or someElephants()
instead of RandomMultiple::from(ElephantBuilder::class, $numberOfItems)
.
So default behavior is to generate these functions.
Disable the data builders' functions generation by using --no-generated-functions
option.
Another example is the presence of the global function random()
using fakerphp/faker.
Default behavior is to generate this function if it does not already exist.
Disable the "random" function's generation by using the --no-generated-random-function
option.
To check all the options check the help:
Contributing
Contribution mainly happens on the source code repository at https://github.com/buildotter/php-maker-standalone-src.
Issues are tracked there.
This repository contains only the phar distribution.
Still, you may contribute here with the documentation for instance!