PHPackages                             visuallazza/fixture-generator - 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. visuallazza/fixture-generator

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

visuallazza/fixture-generator
=============================

events/interfaces

v0.0.1(3y ago)04PHPPHP &gt;=8.1

Since Mar 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/visuallazza/fixture-generator)[ Packagist](https://packagist.org/packages/visuallazza/fixture-generator)[ RSS](/packages/visuallazza-fixture-generator/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Fixture Generator
=================

[](#fixture-generator)

This package helps you to generate fixtures out of your DTO's. To be able to use the `fixture-generator` your DTO's has to extend the `DataTransferObject` of `Spatie`

```
use Spatie\DataTransferObject\DataTransferObject;

class YourDto extends DataTransferObject
{}

```

Add the generator to your deps
==============================

[](#add-the-generator-to-your-deps)

Link to [packagist](https://packagist.org/packages/visuallazza/fixture-generator)

```
composer require visuallazza/fixture-generator

```

How to use
==========

[](#how-to-use)

The method will generate an object with either with placeholder values.

- `className`: Full qualified Name of the class
- `isComplete`: By default `true` all properties will be set, if `flase` only required properties will be set.
- `dataSet`: Set each property as test case requires. The other properties will be set

```
use Fixture\Generator\Models\Primitive;
use PHPUnit\Framework\TestCase;

class TestCase extends TestCase
{
    use HasFixtureGenerator;

    public function test(): void
    {
        $dataSet = [
            'int' => 5,
        ];

        $generatedObject = $this->generate(
            className: Primitive::class,
            isComplete: false,
            providedData: $dataSet
        );
    }
}

```

Dependencies
============

[](#dependencies)

To generate the objects the `spatie DTO` is in use.

```
"spatie/data-transfer-object": "^3.9",

```

Test
====

[](#test)

Run all test with the make command

```
make test

```

Lint
====

[](#lint)

```
make lint

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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

Unknown

Total

1

Last Release

1146d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8207d200ea06f92476f874358fa98b32c4e345eb50411752e887c477feca6bfa?d=identicon)[visuallazza](/maintainers/visuallazza)

---

Top Contributors

[![visuallazza](https://avatars.githubusercontent.com/u/46625400?v=4)](https://github.com/visuallazza "visuallazza (6 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/visuallazza-fixture-generator/health.svg)

```
[![Health](https://phpackages.com/badges/visuallazza-fixture-generator/health.svg)](https://phpackages.com/packages/visuallazza-fixture-generator)
```

###  Alternatives

[wallabag/wallabag

open source self hostable read-it-later web application

12.6k2.2k](/packages/wallabag-wallabag)[illuminate/cookie

The Illuminate Cookie package.

224.3M122](/packages/illuminate-cookie)[codefog/contao-haste

haste extension for Contao Open Source CMS

42650.8k139](/packages/codefog-contao-haste)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)[leapt/core-bundle

Symfony LeaptCoreBundle

2529.1k4](/packages/leapt-core-bundle)

PHPackages © 2026

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