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

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

phariscope/event-store-doctrine
===============================

Store event via Doctrine

1.1.2(2y ago)02.6kMITPHPPHP &gt;=8.2

Since Sep 29Pushed 1y agoCompare

[ Source](https://github.com/phariscope/EventStoreDoctrine)[ Packagist](https://packagist.org/packages/phariscope/event-store-doctrine)[ Docs](https://github.com/phariscope/EventStoreDoctrine)[ RSS](/packages/phariscope-event-store-doctrine/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (11)Used By (0)

Installation
============

[](#installation)

```
composer require phariscope/event-store
```

Usage
=====

[](#usage)

1. First, make sure to have the DATABASE\_URL environment variable correctly initialized.
2. Second, add the PersistEventSubscriber to the listeners as soon as you want.

Enjoy, and observe an 'events' table that contains all published events.

```
    // Assume env var is intiailized.
    // Example DATABASE_URL=mysql://root:pwd1234@mariadb:3306/ap-prod?serverVersion=mariadb-10.9.3&amp;charset=utf8mb4

    $store = new EventStoreDoctrine();
    $subscriber = new PersistDoctrineEventSubscriber($store);
    EventPublisher::instance()->subscribe($subscriber); // use your own EventPublisherFacade could be a good idea
```

To Contribut to pharsicope/EventStoreDoctrine
=============================================

[](#to-contribut-to-pharsicopeeventstoredoctrine)

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

[](#requirements)

- docker
- git

Install
-------

[](#install)

- git clone :phariscope/EventStoreDoctrine.git

Unit test
---------

[](#unit-test)

```
bin/phpunit
```

Using Test-Driven Development (TDD) principles (thanks to Kent Beck and others), following good practices (thanks to Uncle Bob and others) and the great book 'DDD in PHP' by C. Buenosvinos, C. Soronellas, K. Akbary

Quality
-------

[](#quality)

- phpcs PSR12
- phpstan level 9
- coverage 100%
- infection MSI 100%

Quick check with:

```
./codecheck
```

Check coverage with:

```
bin/phpunit --coverage-html var
```

and view 'var/index.html' with your browser

Check infection with:

```
bin/infection
```

and view 'var/infection.html' with your browser

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 52.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 ~60 days

Recently: every ~119 days

Total

9

Last Release

476d ago

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

1.0.1PHP &gt;=7.4

1.1.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b55e08523b4e1c881655796925ea5ac3ed5d997b533185be986b4a0e0d4f73c4?d=identicon)[fredlogipro](/maintainers/fredlogipro)

---

Top Contributors

[![frederic100](https://avatars.githubusercontent.com/u/50176793?v=4)](https://github.com/frederic100 "frederic100 (10 commits)")[![brudert](https://avatars.githubusercontent.com/u/74777353?v=4)](https://github.com/brudert "brudert (9 commits)")

---

Tags

eventdoctrinedddstore events

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[knplabs/doctrine-behaviors

Doctrine Behavior Traits

92212.7M64](/packages/knplabs-doctrine-behaviors)[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M36](/packages/scienta-doctrine-json-functions)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[damienharper/auditor

The missing audit log library.

1922.8M8](/packages/damienharper-auditor)[prezent/doctrine-translatable

Translatable behaviour extension for Doctrine

26754.3k5](/packages/prezent-doctrine-translatable)

PHPackages © 2026

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