PHPackages                             phpdb2unit/db2unit - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. phpdb2unit/db2unit

ActiveLibrary[Testing &amp; Quality](/categories/testing)

phpdb2unit/db2unit
==================

PHPUnit extension for Db2 database interaction testing

4.1.1(4y ago)1231PHPPHP ^7.1

Since Sep 19Pushed 4y agoCompare

[ Source](https://github.com/diggex/db2unit)[ Packagist](https://packagist.org/packages/phpdb2unit/db2unit)[ Docs](https://github.com/diggex/db2unit)[ RSS](/packages/phpdb2unit-db2unit/feed)WikiDiscussions master Synced 1w ago

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

DbUnit
======

[](#dbunit)

[PHPUnit](https://phpunit.de/) extension for database interaction testing.

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

[](#installation)

### Composer

[](#composer)

If you use [Composer](https://getcomposer.org/) to manage the dependencies of your project then you can add DbUnit as a development-time dependency to your project:

```
$ composer require --dev phpunit/dbunit

```

### PHP Archive (PHAR)

[](#php-archive-phar)

You can download a PHAR of DbUnit:

```
$ wget https://phar.phpunit.de/dbunit.phar

```

The example below shows how to configure PHPUnit to load all `*.phar` files found in a given directory (`tools/phpunit.d` in this example):

```

```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 68.1% 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 ~147 days

Recently: every ~340 days

Total

23

Last Release

1742d ago

Major Versions

1.4.x-dev → 2.0.02015-10-02

2.0.x-dev → 3.0.02017-02-03

3.0.3 → 4.0.02018-02-07

PHP version history (6 changes)1.2.0PHP &gt;=5.3.3

2.0.0PHP &gt;=5.6

2.0.2PHP &gt;=5.4

2.0.3PHP ^5.4 || ^7.0

3.0.0PHP ^7.0

4.0.0PHP ^7.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24911730?v=4)[diggex](/maintainers/diggex)[@diggex](https://github.com/diggex)

---

Top Contributors

[![sebastianbergmann](https://avatars.githubusercontent.com/u/25218?v=4)](https://github.com/sebastianbergmann "sebastianbergmann (370 commits)")[![elazar](https://avatars.githubusercontent.com/u/15487?v=4)](https://github.com/elazar "elazar (60 commits)")[![mlively](https://avatars.githubusercontent.com/u/176150?v=4)](https://github.com/mlively "mlively (44 commits)")[![jeunito](https://avatars.githubusercontent.com/u/1216127?v=4)](https://github.com/jeunito "jeunito (10 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (9 commits)")[![diggex](https://avatars.githubusercontent.com/u/24911730?v=4)](https://github.com/diggex "diggex (8 commits)")[![christeredvartsen](https://avatars.githubusercontent.com/u/25402?v=4)](https://github.com/christeredvartsen "christeredvartsen (6 commits)")[![paulyg](https://avatars.githubusercontent.com/u/116860?v=4)](https://github.com/paulyg "paulyg (4 commits)")[![zerkms](https://avatars.githubusercontent.com/u/302295?v=4)](https://github.com/zerkms "zerkms (3 commits)")[![dmelo](https://avatars.githubusercontent.com/u/89710?v=4)](https://github.com/dmelo "dmelo (3 commits)")[![naderman](https://avatars.githubusercontent.com/u/154844?v=4)](https://github.com/naderman "naderman (3 commits)")[![exptom](https://avatars.githubusercontent.com/u/4302032?v=4)](https://github.com/exptom "exptom (3 commits)")[![whatthejeff](https://avatars.githubusercontent.com/u/306525?v=4)](https://github.com/whatthejeff "whatthejeff (2 commits)")[![Sicaine](https://avatars.githubusercontent.com/u/717768?v=4)](https://github.com/Sicaine "Sicaine (2 commits)")[![michsindelar](https://avatars.githubusercontent.com/u/22495823?v=4)](https://github.com/michsindelar "michsindelar (1 commits)")[![yparghi](https://avatars.githubusercontent.com/u/5464454?v=4)](https://github.com/yparghi "yparghi (1 commits)")[![neilime](https://avatars.githubusercontent.com/u/314088?v=4)](https://github.com/neilime "neilime (1 commits)")[![elblinkin](https://avatars.githubusercontent.com/u/431221?v=4)](https://github.com/elblinkin "elblinkin (1 commits)")[![piotrbudny](https://avatars.githubusercontent.com/u/17520549?v=4)](https://github.com/piotrbudny "piotrbudny (1 commits)")[![proofek](https://avatars.githubusercontent.com/u/142795?v=4)](https://github.com/proofek "proofek (1 commits)")

---

Tags

testingdatabasedb2xunit

### Embed Badge

![Health badge](/badges/phpdb2unit-db2unit/health.svg)

```
[![Health](https://phpackages.com/badges/phpdb2unit-db2unit/health.svg)](https://phpackages.com/packages/phpdb2unit-db2unit)
```

###  Alternatives

[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.1k](/packages/orchestra-testbench)[phpunit/phpunit-selenium

Selenium Server integration for PHPUnit

59610.9M150](/packages/phpunit-phpunit-selenium)[kornrunner/dbunit

PHPUnit extension for database interaction testing

141.3M2](/packages/kornrunner-dbunit)[misantron/dbunit

DbUnit fork supporting PHPUnit 10/11/12

121.2M6](/packages/misantron-dbunit)

PHPackages © 2026

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