PHPackages                             becklyn/ddd-doctrine-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. becklyn/ddd-doctrine-bridge

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

becklyn/ddd-doctrine-bridge
===========================

Doctrine implementation of event store and transaction manager for use with becklyn/ddd-core

3.1.0(3mo ago)07.4k↓82.3%3MITPHPPHP &gt;=8.2

Since Jul 21Pushed 3mo agoCompare

[ Source](https://github.com/Becklyn/ddd-doctrine-bridge)[ Packagist](https://packagist.org/packages/becklyn/ddd-doctrine-bridge)[ RSS](/packages/becklyn-ddd-doctrine-bridge/feed)WikiDiscussions 3.x Synced 2w ago

READMEChangelog (10)Dependencies (18)Versions (21)Used By (3)

becklyn/ddd-doctrine-bridge provides Doctrine ORM implementations for the event store and transaction manager interfaces found in becklyn/ddd-core. The library is independent from any technology platform other than Doctrine, but we also provide the becklyn/ddd-symfony-bridge library for use within a Symfony application.

How To
------

[](#how-to)

See becklyn/ddd-core documentation for how to use the components provided by the libraries.

### Setting Up the Event Store

[](#setting-up-the-event-store)

Without using the becklyn/ddd-symfony-bridge library you will have to integrate the event store with your application yourself. Aside from the event store implementation, this library provides Doctrine ORM mappings for it in both XML and annotation formats, as well as a Doctrine Migrations 3 migration to set up the database tables.

### Microseconds in Event Timestamps

[](#microseconds-in-event-timestamps)

To have Doctrine ORM 2 persist microseconds in the database as part of the timestamp representing when an event has been raised, you need to register the `DateTimeImmutableMicrosecondsType` class with Doctrine DBAL as an override for the `datetime_immutable` type. It should ideally be done during bootstrapping, for example:

```
use Doctrine\DBAL\Types\Type;
Type::overrideType('datetime_immutable', 'Becklyn\Ddd\DateTime\Infrastructure\Doctrine\DateTimeImmutableMicrosecondsType');

```

Only MySQL and Oracle are currently supported. For MySQL, this should no longer be necessary with Doctrine ORM 3 as it should incorporate this feature natively. For Oracle, activating the `\Becklyn\Ddd\DateTime\Infrastructure\Doctrine\MicrosecondsOracleSessionInit` Doctrine listener is required as well.

###  Health Score

51

—

FairBetter than 95% of packages

Maintenance82

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 79.2% 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 ~98 days

Recently: every ~341 days

Total

19

Last Release

92d ago

Major Versions

1.0.0 → 2.0.02021-07-22

1.0.1 → 2.0.12021-07-22

1.1.0 → 2.1.02021-07-27

2.x-dev → 3.0.02022-08-24

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

3.0.0PHP &gt;=8.0

3.1.0.x-devPHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1044355?v=4)[Becklyn Studios](/maintainers/becklyn)[@Becklyn](https://github.com/Becklyn)

---

Top Contributors

[![msvujnovic-becklyn](https://avatars.githubusercontent.com/u/74408165?v=4)](https://github.com/msvujnovic-becklyn "msvujnovic-becklyn (19 commits)")[![Thyrannoizer](https://avatars.githubusercontent.com/u/29758676?v=4)](https://github.com/Thyrannoizer "Thyrannoizer (4 commits)")[![msvujnovic](https://avatars.githubusercontent.com/u/22997161?v=4)](https://github.com/msvujnovic "msvujnovic (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/becklyn-ddd-doctrine-bridge/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.5k6.0M779](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.4M236](/packages/sulu-sulu)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1617.3k16](/packages/2lenet-crudit-bundle)[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.9M536](/packages/pimcore-pimcore)[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[neos/neos-development-collection

Neos packages in a joined repository for pull requests.

267104.3k1](/packages/neos-neos-development-collection)

PHPackages © 2026

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