Download the PHP package gustasva/databuilder-php without Composer
On this page you can find all versions of the php package gustasva/databuilder-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download gustasva/databuilder-php
More information about gustasva/databuilder-php
Files in gustasva/databuilder-php
Download gustasva/databuilder-php
More information about gustasva/databuilder-php
Files in gustasva/databuilder-php
Vendor gustasva
Package databuilder-php
Short Description Creating Spryker databuilders from php files for better autocompletion
License MIT
Package databuilder-php
Short Description Creating Spryker databuilders from php files for better autocompletion
License MIT
Please rate this library. Is it a good library?
Informations about the package databuilder-php
Databuilder-php
Databuilder-php is a simple library that allows to define Spryker databuilders in PHP classes. This greatly improves readability and type hinting.
Installation
To install Databuilder-php, run the command below and you will get the latest version
Documentation
-
First we need to add PHP databuilders autoloading as Spryker autoloads only PyzTest directory for testing.
-
Next we create databuilders directory in _data directory.
-
Next we create Databuilders. Naming convention here is SomethingDatabuilder
- Define builder:
- First level of array is transfer name
- Second level of array is the place where you define databuilder properties
- For faker parameters or methods use
$this->faker->method()
- For literal values use
=value
- For faker parameters or methods use
- In getName() method we're defining the name of xml databuilder. If we return
name
from this method the xml databuilder will be namedname.databuilder.xml
Example displayed below:
- Run databuilder generator:
All versions of databuilder-php with dependencies
PHP Build Version
Package Version
Requires
ext-dom Version
*
php Version ^7.4 || ^8.0
php Version ^7.4 || ^8.0
The package gustasva/databuilder-php contains the following files
Loading the files please wait ....