PHPackages                             davidbadura/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. [Database &amp; ORM](/categories/database)
4. /
5. davidbadura/fixtures-bundle

AbandonedArchivedSymfony-bundle[Database &amp; ORM](/categories/database)

davidbadura/fixtures-bundle
===========================

A Symfony2 bundle to load yaml, json and toml fixtures. Easy extendable, resolve object dependency and validate objects.

v1.0.8(12y ago)11127.7k↓27.7%4[6 issues](https://github.com/DavidBadura/FixturesBundle/issues)[2 PRs](https://github.com/DavidBadura/FixturesBundle/pulls)1MITPHPPHP &gt;=5.3.0

Since Jul 19Pushed 3y ago1 watchersCompare

[ Source](https://github.com/DavidBadura/FixturesBundle)[ Packagist](https://packagist.org/packages/davidbadura/fixtures-bundle)[ RSS](/packages/davidbadura-fixtures-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (13)Used By (1)

DavidBaduraFixturesBundle
=========================

[](#davidbadurafixturesbundle)

**The project is no longer supported. If you still want to create fixtures with yaml, then I recommend switching to [Alice](https://github.com/nelmio/alice).**

[![Build Status](https://camo.githubusercontent.com/4a12faf89865c00a22d8db4e2308e29d6817c1e0d0b0aeac86045c0b41022e9f/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f44617669644261647572612f466978747572657342756e646c652e706e67)](http://travis-ci.org/DavidBadura/FixturesBundle)[![Bitdeli Badge](https://camo.githubusercontent.com/fd68a54add0b0594b48cb9b60398f8714ae7cbd8a0d043523df34934437475b3/68747470733a2f2f64327765637a68766c38323376302e636c6f756466726f6e742e6e65742f44617669644261647572612f666978747572657362756e646c652f7472656e642e706e67)](https://bitdeli.com/free "Bitdeli Badge")

Features
--------

[](#features)

- [DavidBaduraFakerBundle](https://github.com/DavidBadura/FakerBundle) support ([documentation](https://github.com/DavidBadura/FixturesBundle/blob/master/Resources/doc/faker.md))
- Resolve object dependency (also bidirectional references)
- Configurable default fixture converter (constructor, properties, set\* and add\* methods)
- Easy to create your own converter
- Extendable by events
- Fixture filtering by tags
- Object validation
- Fixturemanager as a service
- Fixture data validating and normalizing by symfony config component
- MongoDB support
- DefaultConverter: handle "setCreateDate(\\DateTime $date)" methods
- Security Encoder support

Todos
-----

[](#todos)

- Core components move in its own repository [DavidBadura\\Fixtures](https://github.com/DavidBadura/Fixtures)
- XML Fixtures support

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

[](#documentation)

- [Configuration](https://github.com/DavidBadura/FixturesBundle/blob/master/Resources/doc/configuration.md)
- [Fixtures](https://github.com/DavidBadura/FixturesBundle/blob/master/Resources/doc/fixtures.md)
- [Converters](https://github.com/DavidBadura/FixturesBundle/blob/master/Resources/doc/converter.md)
- [Command](https://github.com/DavidBadura/FixturesBundle/blob/master/Resources/doc/command.md)
- [Service](https://github.com/DavidBadura/FixturesBundle/blob/master/Resources/doc/service.md)
- [Extend](https://github.com/DavidBadura/FixturesBundle/blob/master/Resources/doc/extend.md)
- [Faker intergration](https://github.com/DavidBadura/FixturesBundle/blob/master/Resources/doc/faker.md)

1. Installation

---

Add DavidBaduraFixtureBundle in your composer.json

```
{
    "require": {
        "davidbadura/fixtures-bundle": "1.0.*"
    }
}
```

Add the DavidBaduraFixturesBundle to your application kernel:

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new DavidBadura\FixturesBundle\DavidBaduraFixturesBundle(),
        // ...
    );
}
```

2. Configuration

---

Configure DavidBaduraFixturesBundle:

```
# app/config/config.yml
david_badura_fixtures:
  bundles: [YourBundle]
```

Activate support for MongoDB:

```
# app/config/config.yml
david_badura_fixtures:
  persister: odm
```

3. Create fixtures

---

Now you must create your fixture data:

```
# @YourBundle/Resource/fixtures/install.yml
user:
    properties:
        class: "YourBundle\Entity\User"
    data:
        david:
            name: David
            email: "d.badura@gmx.de"
            groups: ["@group:admin"] # get('davidbadura_fixtures.fixture_manager');
$fixtureManager->load();
```

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance9

Infrequent updates — may be unmaintained

Popularity39

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.6% 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

Every ~51 days

Recently: every ~66 days

Total

11

Last Release

4538d ago

Major Versions

1.0.x-dev → 2.0.0-beta2013-12-14

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/470138?v=4)[David Badura](/maintainers/DavidBadura)[@DavidBadura](https://github.com/DavidBadura)

---

Top Contributors

[![DavidBadura](https://avatars.githubusercontent.com/u/470138?v=4)](https://github.com/DavidBadura "DavidBadura (137 commits)")[![marcw](https://avatars.githubusercontent.com/u/160332?v=4)](https://github.com/marcw "marcw (2 commits)")

---

Tags

fakerfixturesdatabaseyamlormdoctrineSymfony2

### Embed Badge

![Health badge](/badges/davidbadura-fixtures-bundle/health.svg)

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

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58723.9M36](/packages/scienta-doctrine-json-functions)[h4cc/alice-fixtures-bundle

Symfony2 Bundle for loading fixture data with the Alice library.

76314.2k7](/packages/h4cc-alice-fixtures-bundle)[data-dog/audit-bundle

Audit bundle for symfony2 and doctrine orm, logs any database change

141901.7k1](/packages/data-dog-audit-bundle)[webonaute/doctrine-fixtures-generator-bundle

Generate Fixture from your existing data in your database. You can specify the Entity name and the IDs you want to import in your fixture.

67184.1k](/packages/webonaute-doctrine-fixtures-generator-bundle)[williarin/wordpress-interop

Interoperability library to work with WordPress database in third party apps

6610.9k2](/packages/williarin-wordpress-interop)[goodwix/doctrine-json-odm

JSON Object-Document Mapping bundle for Symfony and Doctrine

2226.0k](/packages/goodwix-doctrine-json-odm)

PHPackages © 2026

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