PHPackages                             tlikai/laravel-event-store - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tlikai/laravel-event-store

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tlikai/laravel-event-store
==========================

Laravel event store

02.3k3PHP

Since Feb 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tlikai/laravel-event-store)[ Packagist](https://packagist.org/packages/tlikai/laravel-event-store)[ RSS](/packages/tlikai-laravel-event-store/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

LaravelEventStore
=================

[](#laraveleventstore)

1. Setup dependency
-------------------

[](#1-setup-dependency)

```
composer require tlikai/laravel-event-store
```

2. Setup database
-----------------

[](#2-setup-database)

```
php artisan migrate
```

3. Implementation `ShouldBeStored` interface
--------------------------------------------

[](#3-implementation-shouldbestored-interface)

```
use App\User;
use Uniqueway\LaravelEventStore\ShouldBeStored;

class UserCreated implements ShouldBeStored
{
    public $user;

    public function __construct(User $user)
    {
        $this->user = $user;
    }

    // return stored event data
    public function getData()
    {
        return [
            'user_id' => $this->user->id,
        ];
    }
}
```

4. Fire events
--------------

[](#4-fire-events)

```
$user = User::create(['name' => 'likai'])
event(new UserCreated($user));
```

Inspired by
-----------

[](#inspired-by)

- [rails\_event\_store](http://railseventstore.org)
- [ninjasimon/laravel-persistable-events](https://github.com/ninjasimon/laravel-persistable-events)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/95a7e28bfad31da4aecd922e5a056f33edda44817de7137e5c8fbc1634080349?d=identicon)[likai](/maintainers/likai)

---

Top Contributors

[![tlikai](https://avatars.githubusercontent.com/u/1356974?v=4)](https://github.com/tlikai "tlikai (4 commits)")[![geekjourneyx](https://avatars.githubusercontent.com/u/24422856?v=4)](https://github.com/geekjourneyx "geekjourneyx (2 commits)")

---

Tags

event-storelaravel

### Embed Badge

![Health badge](/badges/tlikai-laravel-event-store/health.svg)

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

PHPackages © 2026

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