PHPackages                             phpservicebus/persistence-doctrine2 - 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. phpservicebus/persistence-doctrine2

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

phpservicebus/persistence-doctrine2
===================================

Doctrine 2 persistence for PHP Service Bus

2.1.1(6y ago)08121MITPHPPHP ^7.2,&lt;7.5CI failing

Since Jun 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/phpservicebus/persistence-doctrine2)[ Packagist](https://packagist.org/packages/phpservicebus/persistence-doctrine2)[ Docs](https://github.com/phpservicebus/persistence-doctrine2)[ RSS](/packages/phpservicebus-persistence-doctrine2/feed)WikiDiscussions devel Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (6)Used By (0)

phpservicebus\\persistence-doctrine2
====================================

[](#phpservicebuspersistence-doctrine2)

[![Latest Version on Packagist](https://camo.githubusercontent.com/61a143bc7a253d58e8fad7b9e287c38ef0b7c0b5200809ea30e1d49b2d4d9fc0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706870736572766963656275732f70657273697374656e63652d646f637472696e65322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpservicebus/persistence-doctrine2)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/056b364436cbe2b6561fe982e65f1e8d1fb80a79c986352a6a6585cafa142b22/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f706870736572766963656275732f70657273697374656e63652d646f637472696e65322f646576656c2e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/phpservicebus/persistence-doctrine2)[![Coverage Status](https://camo.githubusercontent.com/c0e71a4123b060755d7cce272973b97e280ec128b95f175f28571748bf6a6a06/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f706870736572766963656275732f70657273697374656e63652d646f637472696e65322e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/phpservicebus/persistence-doctrine2/code-structure)[![Quality Score](https://camo.githubusercontent.com/8e4c0c9b1c0c62b9deae36bf8c71dbc444bdbc94316759f7ddf00d2d2bbf06a5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f706870736572766963656275732f70657273697374656e63652d646f637472696e65322e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/phpservicebus/persistence-doctrine2)[![Total Downloads](https://camo.githubusercontent.com/75205a4c8ca414dbed99b7a74708a72fc063d4ddb1e705aa2ab5d9789dceb692/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706870736572766963656275732f70657273697374656e63652d646f637472696e65322e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/phpservicebus/persistence-doctrine2)

Doctrine 2 based persistence for PHP Service Bus.

Install
-------

[](#install)

Via Composer

```
$ composer require phpservicebus/persistence-doctrine2
```

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [ghola](https://github.com/ghola)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity67

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

Total

4

Last Release

2308d ago

Major Versions

1.0.0 → 2.0.02018-02-05

PHP version history (3 changes)1.0.0PHP &gt;=5.5

2.0.0PHP ^7.0,&lt;7.3

2.1.0PHP ^7.2,&lt;7.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/894f192fe28d2f89216903bbee6fc482b1bb2493f288757c222539a43bca65ec?d=identicon)[ghola](/maintainers/ghola)

---

Top Contributors

[![ghola](https://avatars.githubusercontent.com/u/932205?v=4)](https://github.com/ghola "ghola (11 commits)")

---

Tags

servicedoctrine2command busbuscqrsservice-bus

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phpservicebus-persistence-doctrine2/health.svg)

```
[![Health](https://phpackages.com/badges/phpservicebus-persistence-doctrine2/health.svg)](https://phpackages.com/packages/phpservicebus-persistence-doctrine2)
```

###  Alternatives

[stof/doctrine-extensions-bundle

Integration of the gedmo/doctrine-extensions with Symfony

1.9k85.3M381](/packages/stof-doctrine-extensions-bundle)[sonata-project/doctrine-extensions

Doctrine2 behavioral extensions

26921.9M66](/packages/sonata-project-doctrine-extensions)[league/tactician-doctrine

Plugins for Tactician commands using Doctrine, like wrapping every command in a transaction

583.1M9](/packages/league-tactician-doctrine)[simple-bus/doctrine-orm-bridge

Doctrine ORM bridge for using command and event buses

292.1M9](/packages/simple-bus-doctrine-orm-bridge)[dbtlr/silex-doctrine-migrations

Doctrine migration service provider for Silex

1123.8k1](/packages/dbtlr-silex-doctrine-migrations)

PHPackages © 2026

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