PHPackages                             bonesmccoy/bongo-fixture-loader - 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. bonesmccoy/bongo-fixture-loader

ActiveLibrary[Database &amp; ORM](/categories/database)

bonesmccoy/bongo-fixture-loader
===============================

simple mongo fixture loader

1.1.3(10y ago)04MITPHPPHP &gt;5.4

Since Mar 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/bonesmccoy/bongo-fixture-loader)[ Packagist](https://packagist.org/packages/bonesmccoy/bongo-fixture-loader)[ RSS](/packages/bonesmccoy-bongo-fixture-loader/feed)WikiDiscussions develop Synced 3w ago

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

Bongo Fixture Loader
====================

[](#bongo-fixture-loader)

[![https://travis-ci.org/bonesmccoy/bongo-fixture-loader.svg?branch=master](https://camo.githubusercontent.com/6b6ec2079e5d264465c7aed583cfea49b922743cf27f44666c178a7ff2569d16/68747470733a2f2f7472617669732d63692e6f72672f626f6e65736d63636f792f626f6e676f2d666978747572652d6c6f616465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bonesmccoy/bongo-fixture-loader)[![https://coveralls.io/repos/github/bonesmccoy/bongo-fixture-loader/badge.svg?branch=develop](https://camo.githubusercontent.com/2df952f282d50967a0e5b3245f169809536efa60a4ac084704e11e1f23f1f9e5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f626f6e65736d63636f792f626f6e676f2d666978747572652d6c6f616465722f62616467652e7376673f6272616e63683d646576656c6f70)](https://coveralls.io/github/bonesmccoy/bongo-fixture-loader?branch=develop)Bon(es)(mon)go fixture loader for mongodb.

I know that I'm reinventing the weel, but sometimes it's nice to behave like a caveman ;)

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

[](#installation)

```
$ composer require-dev bonesmccoy/bongo-fixture-loader
```

Configuration
-------------

[](#configuration)

Create a yaml file into ``/yourprojectRoot/config/bongo.yml``

```
mongo_data_store:
    db_name: your_db_name
    host: localhost
    port: 27017
    username: ''
    password: ''
    connect: true

fixtures:
    paths:
        - path/to/fixture/from/project/root
```

Create one or more fixtures in the configured path:

```
:
    - object 1
    - object 2
    - object 3
```

Special Field Syntax

- to get an ObjectId (or MongoId in PHP)

```
"_id" : "
```

- to get a DateTime object

```
"dateTimeField" : ""
"dateField": ""
```

Example of a list of forum post, where the first is the parent of the second:

```
posts:
    - {"_id" : "", "parentId" : "", "senderId" : 1, 'title' : 'title  1', 'body' : 'body content 1', 'date' : '' }
    - {"_id" : "", "parentId" : "", "senderId" : 2, 'title' : 'title', 'body' : 'body content 2', 'date' : '' }
```

will be saved as :

```
{
    "_id" : ObjectId('56eb45003639330941000001'),
    "parentId: ObjectId('56eb45003639330941000001'),
    "senderId": 1,
    ...
    ...
    "date" : ISODate('2016-03-04 12:00:00')
}

{
    "_id" : ObjectId('56eb45003639330941000002'),
    "parentId: ObjectId('56eb45003639330941000001'),
    "senderId": 1,
    ...
    ...
    "date" : ISODate('2016-03-04 13:00:00')
}
```

Usage
-----

[](#usage)

Load fixtures:

```
$ bin/bongo-load /path/to/bongo.yml
```

Requirements
------------

[](#requirements)

- PHP &gt; 5.4
- mongo extension
- symfony/yaml

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

Established project with proven stability

 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

Every ~16 days

Total

6

Last Release

3683d ago

Major Versions

0.1 → 1.02016-03-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/3af64d5feaabcc614ff0fd5b915ac796399e55d32338068a49d7b26304562e3a?d=identicon)[bonesmccoy](/maintainers/bonesmccoy)

---

Top Contributors

[![bonesmccoy](https://avatars.githubusercontent.com/u/8972592?v=4)](https://github.com/bonesmccoy "bonesmccoy (82 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bonesmccoy-bongo-fixture-loader/health.svg)

```
[![Health](https://phpackages.com/badges/bonesmccoy-bongo-fixture-loader/health.svg)](https://phpackages.com/packages/bonesmccoy-bongo-fixture-loader)
```

###  Alternatives

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

1155.2k](/packages/rcsofttech-audit-trail-bundle)[kimai/kimai

Kimai - Time Tracking

4.7k8.7k1](/packages/kimai-kimai)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[perplorm/perpl

Perpl is an improved and still maintained fork of Propel2, an open-source Object-Relational Mapping (ORM) for PHP.

239.4k](/packages/perplorm-perpl)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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