PHPackages                             prooph/event-store-doctrine-adapter - 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. prooph/event-store-doctrine-adapter

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

prooph/event-store-doctrine-adapter
===================================

Doctrine Adapter for ProophEventStore

v3.3.0(9y ago)1357.2k↓20.4%74BSD-3-ClausePHPPHP ~5.5|~7.0

Since Sep 7Pushed 9y ago7 watchersCompare

[ Source](https://github.com/prooph/event-store-doctrine-adapter)[ Packagist](https://packagist.org/packages/prooph/event-store-doctrine-adapter)[ Docs](http://getprooph.org/)[ RSS](/packages/prooph-event-store-doctrine-adapter/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (10)Versions (21)Used By (4)

Doctrine Adapter for ProophEventStore
=====================================

[](#doctrine-adapter-for-proopheventstore)

[![Build Status](https://camo.githubusercontent.com/d26dbca51b9f94ef4f0efd9f1fe6aea312bc1358a90f398cdc1e9f08fd44e878/68747470733a2f2f7472617669732d63692e6f72672f70726f6f70682f6576656e742d73746f72652d646f637472696e652d616461707465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/prooph/event-store-doctrine-adapter)[![Coverage Status](https://camo.githubusercontent.com/df88aba1f861762d4157c32ff4c49f9f1d53bcd363f04e9d1ff897e6c56bff0f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f70726f6f70682f6576656e742d73746f72652d646f637472696e652d616461707465722f62616467652e706e67)](https://coveralls.io/r/prooph/event-store-doctrine-adapter)[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/prooph/improoph)

\#CAUTION: The Doctrine adapter is not compatible With prooph/event-store v7. Use the new [PDO Event Store](https://github.com/prooph/pdo-event-store) instead! Support for the adapter will end at 31 December 2017.

Use [Prooph Event Store](https://github.com/prooph/event-store) with [Doctrine DBAL](https://github.com/doctrine/dbal).

Database Set Up
---------------

[](#database-set-up)

The database structure depends on the [stream strategies](https://github.com/prooph/event-store/blob/master/docs/repositories.md#stream-strategies) you want to use for your aggregate roots. You can find example SQLs for MySql in the [scripts folder](scripts)and an [EventStoreSchema tool](src/Schema/EventStoreSchema.php) which you can use an a doctrine migrations scirpt.

> The database schema is only a suggestion. The `aggregate_type` column has a length of 150 chars. If you have very long class names you should increase this length, otherwise it could lead to errors in your application. This length should be equal with the `aggregate_type` length in the [snapshot table](https://github.com/prooph/snapshot-doctrine-adapter "Doctrine Adapter for the Snapshot Store").

Limitations
-----------

[](#limitations)

When using MySQL while enabling `oneStreamPerAggregate` option, the transaction handling is broken! For more information see: [prooph/pdo-event-store#6](https://github.com/prooph/pdo-event-store/issues/6)

Requirements
------------

[](#requirements)

- PHP &gt;= 5.5
- [Doctrine DBAL](https://github.com/doctrine/dbal) ^2.4
- [Prooph Event Store](https://github.com/prooph/event-store) ^5.0

License
-------

[](#license)

Released under the [New BSD License](https://github.com/prooph/event-store-doctrine-adapter/blob/master/LICENSE).

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity37

Limited adoption so far

Community26

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 72.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 ~45 days

Recently: every ~81 days

Total

18

Last Release

3552d ago

Major Versions

v0.3.3 → v1.02015-05-01

v1.0.1 → v2.0-beta.12015-08-28

v2.0 → v3.0-beta.22015-09-10

PHP version history (3 changes)0.1.0PHP &gt;=5.4

v1.0PHP &gt;=5.5

v3.1.0PHP ~5.5|~7.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5de14776bbddf901c6e24d35829fe66fe997c303d53aca83cc7d1a90bb0b7110?d=identicon)[jsor](/maintainers/jsor)

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

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

---

Top Contributors

[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (45 commits)")[![jsor](https://avatars.githubusercontent.com/u/55574?v=4)](https://github.com/jsor "jsor (12 commits)")[![sandrokeil](https://avatars.githubusercontent.com/u/3597436?v=4)](https://github.com/sandrokeil "sandrokeil (3 commits)")[![codeliner](https://avatars.githubusercontent.com/u/5131987?v=4)](https://github.com/codeliner "codeliner (1 commits)")[![oqq](https://avatars.githubusercontent.com/u/7161145?v=4)](https://github.com/oqq "oqq (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/prooph-event-store-doctrine-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/prooph-event-store-doctrine-adapter/health.svg)](https://phpackages.com/packages/prooph-event-store-doctrine-adapter)
```

###  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.

4585.8M4](/packages/martin-georgiev-postgresql-for-doctrine)[flow-php/doctrine-dbal-bulk

Bulk inserts and updates for Doctrine DBAL

14385.8k4](/packages/flow-php-doctrine-dbal-bulk)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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