PHPackages                             iamdevice/codeception-multidb - 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. iamdevice/codeception-multidb

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

iamdevice/codeception-multidb
=============================

Codeception extension for work with multiple databases

1.0.11(8y ago)1093.8k7[5 issues](https://github.com/iamdevice/codeception-multidb/issues)[1 PRs](https://github.com/iamdevice/codeception-multidb/pulls)MITPHPPHP &gt;=5.6.0

Since Jan 26Pushed 7y ago4 watchersCompare

[ Source](https://github.com/iamdevice/codeception-multidb)[ Packagist](https://packagist.org/packages/iamdevice/codeception-multidb)[ RSS](/packages/iamdevice-codeception-multidb/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

MultiDb module for Codeception
------------------------------

[](#multidb-module-for-codeception)

This module based on original Db module

#### Installation

[](#installation)

```
composer require iamdevice/codeception-multidb

```

Config example

```
modules:
   enabled:
     - MultiDb
   config:
     MultiDb:
       connections:
         masterDb:
           dsn: 'mysql:host=localhost;port=3306;dbname=database'
           user: 'username'
           password: 'password'
           primary: true
           dump: ''
           populate: true
           cleanup: false
           reconnect: true
         slaveDb:
           dsn: 'mysql:host=localhost;port=3307;dbname=database'
           user: 'username'
           password: 'password'
           dump: ''
           populate: true
           cleanup: false
           reconnect: true

```

Before actions with base you need to select Db like

```
$I->amConnectedToDb('primary')

```

or you must define one of the connections as primary with

```
primary: true

```

Aleksandr Kozhevnikov © 2017

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 94.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 ~61 days

Recently: every ~108 days

Total

9

Last Release

2951d ago

### Community

Maintainers

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

---

Top Contributors

[![iamdevice](https://avatars.githubusercontent.com/u/15125262?v=4)](https://github.com/iamdevice "iamdevice (35 commits)")[![vaclav-easymarkit](https://avatars.githubusercontent.com/u/15903092?v=4)](https://github.com/vaclav-easymarkit "vaclav-easymarkit (2 commits)")

### Embed Badge

![Health badge](/badges/iamdevice-codeception-multidb/health.svg)

```
[![Health](https://phpackages.com/badges/iamdevice-codeception-multidb/health.svg)](https://phpackages.com/packages/iamdevice-codeception-multidb)
```

###  Alternatives

[dms/phpunit-arraysubset-asserts

This package provides ArraySubset and related asserts once deprecated in PHPUnit 8

14429.2M361](/packages/dms-phpunit-arraysubset-asserts)[gong023/assert_chain

enable you to use phpunit assert with method chain

1478.9k3](/packages/gong023-assert-chain)

PHPackages © 2026

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