PHPackages                             surgio/eloquent-message-repository - 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. surgio/eloquent-message-repository

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

surgio/eloquent-message-repository
==================================

Eloquent Message Repository for EventSauce

v4.0(1mo ago)038.8k—1.2%MITPHPPHP &gt;=8.2

Since Jun 21Pushed 1mo agoCompare

[ Source](https://github.com/surgiollc/eloquent-message-repository)[ Packagist](https://packagist.org/packages/surgio/eloquent-message-repository)[ RSS](/packages/surgio-eloquent-message-repository/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (7)Dependencies (9)Versions (16)Used By (0)

Eloquent Message Repository for EventSauce
==========================================

[](#eloquent-message-repository-for-eventsauce)

This package allows you to use Eloquent as a custom message repository for [EventSauce](https://eventsauce.io/docs/advanced/custom-repository/).

Heavily inspired by [EventSaucePHP/DoctrineMessageRepository](https://github.com/EventSaucePHP/DoctrineMessageRepository).

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

[](#requirements)

This package requires PHP 8.2 and Laravel 10 or higher.

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

[](#installation)

```
composer require surgio/eloquent-message-repository:^4.0.0

```

Setup
-----

[](#setup)

Publish the migration:

```
php artisan vendor:publish --provider="Surgio\EloquentMessageRepository\EventSauceServiceProvider" --tag="migrations"

```

Migrate your database:

```
php artisan migrate

```

Usage
-----

[](#usage)

The Eloquent Message Repository implements `EventSauce\EventSourcing\MessageRepository` and can be passed to any `AggregateRootRepository` like so:

```
$aggregateRootRepository = new ConstructingAggregateRootRepository(
    SomeProcess::class,
    new EloquentMessageRepository(new ConstructingMessageSerializer())
);

```

Testing
-------

[](#testing)

You can run the tests with:

```
composer test

```

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance89

Actively maintained with recent releases

Popularity28

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~459 days

Total

11

Last Release

56d ago

Major Versions

v1.0.4 → v2.02024-01-05

v2.0 → v3.02025-08-19

v3.0 → v4.02026-05-08

### Community

Maintainers

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

---

Top Contributors

[![dreamtime](https://avatars.githubusercontent.com/u/122026?v=4)](https://github.com/dreamtime "dreamtime (8 commits)")[![danielmcguinness](https://avatars.githubusercontent.com/u/73490648?v=4)](https://github.com/danielmcguinness "danielmcguinness (4 commits)")[![dallincoons](https://avatars.githubusercontent.com/u/6494464?v=4)](https://github.com/dallincoons "dallincoons (3 commits)")[![JSellis](https://avatars.githubusercontent.com/u/7863167?v=4)](https://github.com/JSellis "JSellis (2 commits)")

---

Tags

laraveleloquentEventSauceEventSaucePHPMessageRepository

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/surgio-eloquent-message-repository/health.svg)

```
[![Health](https://phpackages.com/badges/surgio-eloquent-message-repository/health.svg)](https://phpackages.com/packages/surgio-eloquent-message-repository)
```

###  Alternatives

[bavix/laravel-wallet

It's easy to work with a virtual wallet.

1.3k1.3M19](/packages/bavix-laravel-wallet)[dyrynda/laravel-model-uuid

This package allows you to easily work with UUIDs in your Laravel models.

4843.1M9](/packages/dyrynda-laravel-model-uuid)[bosnadev/database

Eloquent Extended, added some PostgreSQL features

782.0M4](/packages/bosnadev-database)[znck/plug

Addons for Laravel Eloquent

131.5k](/packages/znck-plug)

PHPackages © 2026

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