PHPackages                             tijmen-wierenga/bogus-fixtures-bundle - 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. tijmen-wierenga/bogus-fixtures-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

tijmen-wierenga/bogus-fixtures-bundle
=====================================

A Symfony bundle for creating dummy data fixtures through Bogus

v1.0.0(7y ago)1107MITPHP

Since Oct 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/TijmenWierenga/BogusFixturesBundle)[ Packagist](https://packagist.org/packages/tijmen-wierenga/bogus-fixtures-bundle)[ RSS](/packages/tijmen-wierenga-bogus-fixtures-bundle/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

BogusFixturesBundle
===================

[](#bogusfixturesbundle)

The BogusFixturesBundle adds the functionality of [`tijmen-wierenga/bogus`](https://github.com/TijmenWierenga/Bogus) to a Symfony 4 application.

For any questions regarding this bundle, feel free to contact Tijmen Wierenga at `t.wierenga@live.nl`.

Installation
------------

[](#installation)

You can install this bundle into your Symfony applications with composer:

```
composer require tijmen-wierenga/bogus-fixtures-bundle
```

If you only want to use the bundle in development (a lot of times you'll only use it for testing purposes):

```
composer require --dev tijmen-wierenga/bogus-fixtures-bundle
```

If you're using Symfony 3.4 or lower, you'll need to register the bundle as well:

```
// app/AppKernel.php

// ...
class AppKernel extends Kernel
{
    // ...

    public function registerBundles()
    {
        // For global registration
        $bundles = array(
            // ...
            new TijmenWierenga\Bundle\BogusFixturesBundle(),
        );

        // For development/testing registration only
        if (in_array($this->getEnvironment(), array('dev', 'test'))) {
            $bundles[] = new TijmenWierenga\Bundle\BogusFixturesBundle();
        }
    }
}
```

Usage
-----

[](#usage)

Usage instructions for the Bogus library can be find in the project's [README.md](https://github.com/TijmenWierenga/Bogus).

If your Symfony project allows for auto-configuration (3.4 or higher), you can add the following lines to your `services.yaml` file:

```
_instanceof:
    TijmenWierenga\Bogus\Factory\Factory:
        tags: ['bogus_fixtures.factory']
```

This will automatically tag any instance of `TijmenWierenga\Bogus\Factory\Factory` with the `bogus_fixtures.factory` tag. The factory will be automatically added to the Fixtures base class.

If you prefer you add the labels yourself, or your Symfony application doesn't allow for auto-registration, you can tag individual services:

```
App\Factories\UserFactory:
    tags: ['bogus_fixtures.factory']
```

For usage in tests the bundle comes with a trait. Use it in your test cases like this:

```
namespace App\Tests;

use App\Entity\User;
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
use TijmenWierenga\Bundle\BogusFixturesBundle\Fixtures;

class FixturesTest extends KernelTestCase
{
    use Fixtures;

    public function setUp()
    {
        self::bootKernel();
    }

    public function testItBuildsAFixture()
    {
        $user = $this->fixtures()->create(User::class); // Will generate a User
    }
}
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

Established project with proven stability

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 ~1 days

Total

2

Last Release

2816d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8513032?v=4)[Tijmen Wierenga](/maintainers/TijmenWierenga)[@TijmenWierenga](https://github.com/TijmenWierenga)

---

Tags

data-generatordummy-datafixturessymfony-bundle

### Embed Badge

![Health badge](/badges/tijmen-wierenga-bogus-fixtures-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/tijmen-wierenga-bogus-fixtures-bundle/health.svg)](https://phpackages.com/packages/tijmen-wierenga-bogus-fixtures-bundle)
```

###  Alternatives

[symfony/stimulus-bundle

Integration with your Symfony app &amp; Stimulus!

17417.5M294](/packages/symfony-stimulus-bundle)

PHPackages © 2026

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