PHPackages                             gustasva/databuilder-php - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gustasva/databuilder-php

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gustasva/databuilder-php
========================

Creating Spryker databuilders from php files for better autocompletion

1.1.0(3y ago)016.0kMITPHPPHP ^7.4 || ^8.0

Since May 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/GustasVa/databuilder-php)[ Packagist](https://packagist.org/packages/gustasva/databuilder-php)[ RSS](/packages/gustasva-databuilder-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

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
------------

[](#installation)

To install Databuilder-php, run the command below and you will get the latest version

```
composer require --dev gustasva/databuilder-php
```

Documentation
-------------

[](#documentation)

1. First we need to add PHP databuilders autoloading as Spryker autoloads only PyzTest directory for testing.

```
"autoload-dev": {
        "psr-4": {
            "_data\\": "tests/_data/",
```

2. Next we create databuilders directory in \_data directory.

```
├── ...
├── tests
      ├── _data
            ├── Builders
```

4. Next we create Databuilders. Naming convention here is *Something*Databuilder

```
namespace _data\Builders;

use Databuilder\Databuilder;

class SomethingDatabuilder extends Databuilder
```

4. Define builder:
    1. First level of array is transfer name
    2. Second level of array is the place where you define databuilder properties
        1. For faker parameters or methods use `$this->faker->method()`
        2. For literal values use `=value`
    3. In getName() method we're defining the name of xml databuilder. If we return `name` from this method the xml databuilder will be named `name.databuilder.xml`

Example displayed below:

```
return [
    'Something' => [
        'name' => $this->faker->word(),
        'value' => '=thisIsSomeValue',
```

5. Run databuilder generator:

```
vendor/bin/databuilder
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~58 days

Total

4

Last Release

1279d ago

Major Versions

0.1.1 → 1.0.02022-05-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8e57116703ea4440bfd05007033b50116a358f73fd2c4484d77cc4a25ce8eb0?d=identicon)[GustasVa](/maintainers/GustasVa)

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/gustasva-databuilder-php/health.svg)

```
[![Health](https://phpackages.com/badges/gustasva-databuilder-php/health.svg)](https://phpackages.com/packages/gustasva-databuilder-php)
```

###  Alternatives

[phpreel/static

Laravel package that converts your application into a static HTML website.

162.7k1](/packages/phpreel-static)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
