PHPackages                             jaspernbrouwer/doctrine-dbal-bridge - 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. jaspernbrouwer/doctrine-dbal-bridge

Abandoned → [simple-bus/doctrine-dbal-bridge](/?search=simple-bus%2Fdoctrine-dbal-bridge)Library[Database &amp; ORM](/categories/database)

jaspernbrouwer/doctrine-dbal-bridge
===================================

Bridge for using SimpleBus with Doctrine DBAL

v2.0.0(11y ago)363MITPHPPHP &gt;=5.4

Since Dec 23Pushed 11y ago1 watchersCompare

[ Source](https://github.com/jaspernbrouwer/DoctrineDBALBridge)[ Packagist](https://packagist.org/packages/jaspernbrouwer/doctrine-dbal-bridge)[ Docs](https://github.com/jaspernbrouwer/DoctrineDBALBridge)[ RSS](/packages/jaspernbrouwer-doctrine-dbal-bridge/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

DoctrineDBALBridge
==================

[](#doctrinedbalbridge)

A bridge for using [SimpleBus](https://github.com/SimpleBus) with [Doctrine DBAL](http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/).

By [Jasper N. Brouwer](https://github.com/jaspernbrouwer)

Deprecated
----------

[](#deprecated)

This package is deprecated and has been moved to [SimpleBus/DoctrineDBALBridge](https://github.com/SimpleBus/DoctrineDBALBridge)!

You may still use version 1.x if you're using SimpleBus/CommandBus. But for SimpleBus/MessageBus, please switch to [SimpleBus/DoctrineDBALBridge](https://github.com/SimpleBus/DoctrineDBALBridge), *this package will no longer be maintained*.

Versions
--------

[](#versions)

Version 1.x is compatible with [SimpleBus](https://github.com/SimpleBus)/[CommandBus](https://github.com/SimpleBus/CommandBus).

Version 2.x is compatible with [SimpleBus](https://github.com/SimpleBus)/[MessageBus](https://github.com/SimpleBus/MessageBus).

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

[](#installation)

Using Composer:

```
composer require jaspernbrouwer/doctrine-dbal-bridge

```

Usage
-----

[](#usage)

1. Set up a [command bus](https://github.com/SimpleBus/MessageBus):

```
$commandBus = ...;
```

2. Set up a [Doctrine DBAL](http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/) connection:

```
$connection = ...;
```

3. Set up the WrapsMessageHandlingInTransaction middleware:

```
use JNB\DoctrineDBALBridge\MessageBus\WrapsMessageHandlingInTransaction;

$transactionalMiddleware = new WrapsMessageHandlingInTransaction($connection);
```

3. Add the middleware to the command bus:

```
$commandBus->addMiddleware($transactionalMiddleware);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

Total

5

Last Release

4115d ago

Major Versions

v1.0.1 → v2.0.02015-02-10

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b1ad490738a1f8743a80dd670a0343233dcac93d04a52103ec99a4f7a94dd85?d=identicon)[jaspernbrouwer](/maintainers/jaspernbrouwer)

---

Top Contributors

[![jaspernbrouwer](https://avatars.githubusercontent.com/u/738933?v=4)](https://github.com/jaspernbrouwer "jaspernbrouwer (6 commits)")

---

Tags

doctrinedbalcommand bus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jaspernbrouwer-doctrine-dbal-bridge/health.svg)

```
[![Health](https://phpackages.com/badges/jaspernbrouwer-doctrine-dbal-bridge/health.svg)](https://phpackages.com/packages/jaspernbrouwer-doctrine-dbal-bridge)
```

###  Alternatives

[martin-georgiev/postgresql-for-doctrine

Extends Doctrine with native PostgreSQL support for arrays, JSONB, ranges, PostGIS geometries, text search, ltree, uuid, and 100+ PostgreSQL-specific functions.

4485.3M4](/packages/martin-georgiev-postgresql-for-doctrine)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[jsor/doctrine-postgis

Spatial and Geographic Data with PostGIS and Doctrine.

2191.6M1](/packages/jsor-doctrine-postgis)[simple-bus/symfony-bridge

Bridge for using command buses and event buses in Symfony projects

1314.3M19](/packages/simple-bus-symfony-bridge)[larapack/doctrine-support

Better Doctrine Support with Laravel (Support for `enum`)

1752.3M55](/packages/larapack-doctrine-support)[friendsofdoctrine/dbal-clickhouse

Doctrine DBAL driver for ClickHouse

1141.2M1](/packages/friendsofdoctrine-dbal-clickhouse)

PHPackages © 2026

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