PHPackages                             tbajorek/doctrine-file-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. tbajorek/doctrine-file-fixtures-bundle

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

tbajorek/doctrine-file-fixtures-bundle
======================================

A Symfony Bundle to provide simple file fixtures mechanism

1.0(5y ago)02[4 issues](https://github.com/tbajorek/doctrine-file-fixtures/issues)MITPHPPHP ^7.2

Since Aug 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/tbajorek/doctrine-file-fixtures)[ Packagist](https://packagist.org/packages/tbajorek/doctrine-file-fixtures-bundle)[ RSS](/packages/tbajorek-doctrine-file-fixtures-bundle/feed)WikiDiscussions master Synced yesterday

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

Doctrine File Fixtures
======================

[](#doctrine-file-fixtures)

[![Source Code](https://camo.githubusercontent.com/2f0f02135aa5a0fa428fe22d772229cb75761228b0269f1a77cad016bb6ddbbc/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d7462616a6f72656b2f646f637472696e652d2d66696c652d2d66697874757265732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/tbajorek/doctrine-file-fixtures)[![Latest Version](https://camo.githubusercontent.com/ce7488eb9c39ab78b53b8db9f6e6da36f7dad814040cd94b0240f1d8b3ce24a5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7462616a6f72656b2f646f637472696e652d66696c652d66697874757265732d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tbajorek/doctrine-file-fixtures-bundle)[![Downloads](https://camo.githubusercontent.com/7d2e3a1de4e76aa23e030a8735cf08ecb8701995675508b16ce5ff8822dcaea1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7462616a6f72656b2f646f637472696e652d66696c652d66697874757265732d62756e646c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tbajorek/doctrine-file-fixtures-bundle)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/tbajorek/doctrine-file-fixtures/blob/master/LICENSE)

About the project
-----------------

[](#about-the-project)

The library is designed to offer you a functionality of loading database fixtures from files. It supports different file formats. The library can be extended and adapted in your projects.

Current version is still in progress. The most important of non-supported (yet!) functionality is Many-To-Many relation. It will be implemented in next version. However, for simple model structure the library works well.

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

[](#installation)

The preferred method of installation is via Packagist and Composer. Installation is very simple:

1. Run the following command to install the package and add it as a requirement to your project's composer.json:

```
composer require tbajorek/doctrine-file-fixtures-bundle
```

2. Add this line:

```
Tbajorek\DoctrineFileFixturesBundle\DoctrineFileFixturesBundle::class => ['all' => true]
```

to array in `config/bundles.php` file in your project to register the bundle.

Library is provided with some default configuration, so it's not required to define it. However, you can change it to meet your expectations. Read more about configuration [HERE](https://github.com/tbajorek/doctrine-file-fixtures/blob/master/docs/1.configuration.md).

Usage
-----

[](#usage)

The library is used from command line. It adds some commands to your project.

### Loading the fixtures

[](#loading-the-fixtures)

To load the fixtures from file to database please just execute the following command:

```
bin/console doctrine:file-fixtures:load
```

**Options:**

- *--clear* - if set, then database will be cleared before loading fixtures there

Detailed informations
---------------------

[](#detailed-informations)

1. [Configuration](https://github.com/tbajorek/doctrine-file-fixtures/blob/master/docs/1.configuration.md)
2. [Fixture file formats](https://github.com/tbajorek/doctrine-file-fixtures/blob/master/docs/2.fixture_file_formats.md)
3. [Using with other ORM](https://github.com/tbajorek/doctrine-file-fixtures/blob/master/docs/3.other_orm.md)

TODO
----

[](#todo)

As this library is still being developed, there are some planed features to be implemented in next versions:

1. fixtures for Many-To-Many relation
2. export operation to allow create fixture file(s) based on data from database
3. composite identifier using more than one column

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

2095d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5f59c8b66bad76a4da3652902551526a3b4da22b2528f585f3f9e612635aafb3?d=identicon)[tbajorek](/maintainers/tbajorek)

---

Top Contributors

[![tbajorek](https://avatars.githubusercontent.com/u/11332657?v=4)](https://github.com/tbajorek "tbajorek (5 commits)")

---

Tags

symfonyfixturesdoctrine

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tbajorek-doctrine-file-fixtures-bundle/health.svg)

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

###  Alternatives

[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1022.4k](/packages/rcsofttech-audit-trail-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

813.1k](/packages/ahmed-bhs-doctrine-doctor)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1714.8k8](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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