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

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

jsellis/eloquent-message-repository
===================================

Eloquent Message Repository for EventSauce

v1.0.3(7y ago)0182MITPHP

Since Jun 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/JSellis/eloquent-message-repository)[ Packagist](https://packagist.org/packages/jsellis/eloquent-message-repository)[ RSS](/packages/jsellis-eloquent-message-repository/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (5)Used By (0)

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

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

[![Build Status](https://camo.githubusercontent.com/151b1bf57e79593bf4a68632ad4a46f32ce93e8143edaf6d0fef705b02098178/68747470733a2f2f7472617669732d63692e6f72672f4a53656c6c69732f656c6f7175656e742d6d6573736167652d7265706f7369746f72792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/JSellis/eloquent-message-repository)[![Latest Stable Version](https://camo.githubusercontent.com/1086c1062e2a195e200fcfe3a3db295d7faf51f9a65a2f8ea989e85acdfd07f7/68747470733a2f2f706f7365722e707567782e6f72672f6a73656c6c69732f656c6f7175656e742d6d6573736167652d7265706f7369746f72792f76657273696f6e)](https://packagist.org/packages/jsellis/eloquent-message-repository)

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 7.2 and Laravel 5.6 or higher.

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

[](#installation)

```
composer require jsellis/eloquent-message-repository:^1.0.0

```

Setup
-----

[](#setup)

Publish the migration:

```
php artisan vendor:publish --provider="JSellis\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

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

2882d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f92274d3be2d61e8f0482b85f978fa6806d35d0295b0c61835d08c343825cb8?d=identicon)[JSellis](/maintainers/JSellis)

---

Top Contributors

[![JSellis](https://avatars.githubusercontent.com/u/7863167?v=4)](https://github.com/JSellis "JSellis (2 commits)")

---

Tags

eloquentevent-sourcingeventsaucelaravelmessage-repositorylaraveleloquentEventSauceEventSaucePHPMessageRepository

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[dyrynda/laravel-model-uuid

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

4802.8M8](/packages/dyrynda-laravel-model-uuid)[bosnadev/database

Eloquent Extended, added some PostgreSQL features

811.8M3](/packages/bosnadev-database)[weebly/laravel-mutate

Mutate Laravel attributes

1354.7k](/packages/weebly-laravel-mutate)[znck/plug

Addons for Laravel Eloquent

131.5k](/packages/znck-plug)

PHPackages © 2026

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