PHPackages                             intraworlds/phpunit-db-fixtures - 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. intraworlds/phpunit-db-fixtures

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

intraworlds/phpunit-db-fixtures
===============================

Loading DB fixtures with ease

0.8.2(2mo ago)274.7k—0%8[5 issues](https://github.com/peoplepath/phpunit-db-fixtures/issues)[3 PRs](https://github.com/peoplepath/phpunit-db-fixtures/pulls)MITPHPPHP &gt;=8.3

Since Apr 25Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/peoplepath/phpunit-db-fixtures)[ Packagist](https://packagist.org/packages/intraworlds/phpunit-db-fixtures)[ RSS](/packages/intraworlds-phpunit-db-fixtures/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (39)Used By (0)

phpunit-db-fixtures
===================

[](#phpunit-db-fixtures)

Simple DB fixtures loading, replacement for phpunit/dbunit

Usage
-----

[](#usage)

```
use IW\PHPUnit\DbFixtures\DbFixturesTrait;
use IW\PHPUnit\DbFixtures\Fixtures;

final class MyTest extends TestCase
{
  use DbFixturesTrait;

  // returns connections to your DB, implementation is up to you, a singleton should be returned probably
  protected function getConnections(string $connectionName): array {
    return match ($connectionName) {
      // key is name of DB, use it for distinction between multiple DBs
      'mysql' => new \PDO(...),
      'elastic' => new Elasticsearch\Client(...),
    };
  }

  #[Fixtures('mysql', 'read-only', 'fixtures.yml')]
  public function testWithFixtures() {
    // before test data from fixtures.yml will be loaded into mysql
  }
}
```

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance66

Regular maintenance activity

Popularity33

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~54 days

Total

37

Last Release

70d ago

PHP version history (2 changes)0.5PHP &gt;=8.1

0.7PHP &gt;=8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2031969?v=4)[Ondřej Ešler](/maintainers/esler)[@esler](https://github.com/esler)

---

Top Contributors

[![kambo-1st](https://avatars.githubusercontent.com/u/6493048?v=4)](https://github.com/kambo-1st "kambo-1st (11 commits)")[![esler](https://avatars.githubusercontent.com/u/2031969?v=4)](https://github.com/esler "esler (10 commits)")[![stranska](https://avatars.githubusercontent.com/u/4597644?v=4)](https://github.com/stranska "stranska (2 commits)")[![zdenekzahor](https://avatars.githubusercontent.com/u/26121211?v=4)](https://github.com/zdenekzahor "zdenekzahor (1 commits)")[![richard-bohac](https://avatars.githubusercontent.com/u/93972437?v=4)](https://github.com/richard-bohac "richard-bohac (1 commits)")[![janpalacky](https://avatars.githubusercontent.com/u/7532973?v=4)](https://github.com/janpalacky "janpalacky (1 commits)")[![t0maash77](https://avatars.githubusercontent.com/u/26438734?v=4)](https://github.com/t0maash77 "t0maash77 (1 commits)")

###  Code Quality

Static AnalysisRector

### Embed Badge

![Health badge](/badges/intraworlds-phpunit-db-fixtures/health.svg)

```
[![Health](https://phpackages.com/badges/intraworlds-phpunit-db-fixtures/health.svg)](https://phpackages.com/packages/intraworlds-phpunit-db-fixtures)
```

PHPackages © 2026

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