PHPackages                             albertoarena/laravel-event-sourcing-generator - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. albertoarena/laravel-event-sourcing-generator

ActiveLibrary[Testing &amp; Quality](/categories/testing)

albertoarena/laravel-event-sourcing-generator
=============================================

Laravel event sourcing domain generator

v1.1.0(4d ago)2410.0k1MITPHPPHP ^8.3|^8.4|^8.5CI passing

Since Oct 24Pushed 2d ago1 watchersCompare

[ Source](https://github.com/albertoarena/laravel-event-sourcing-generator)[ Packagist](https://packagist.org/packages/albertoarena/laravel-event-sourcing-generator)[ RSS](/packages/albertoarena-laravel-event-sourcing-generator/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (10)Dependencies (36)Versions (55)Used By (0)

Laravel event sourcing generator
================================

[](#laravel-event-sourcing-generator)

  ![Laravel Event Sourcing Generator — scaffold complete event-sourced domains with one Artisan command](art/cover-light.png)[![coverage](https://raw.githubusercontent.com/albertoarena/laravel-event-sourcing-generator/coverage-data/coverage.svg)](https://raw.githubusercontent.com/albertoarena/laravel-event-sourcing-generator/coverage-data/coverage.svg)[![Documentation](https://camo.githubusercontent.com/45148d1b7f9d8bacbb13667be5826d7cf4c8b6ff82ff15e9534d3b2696874730/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d776562736974652d3633363666313f7374796c653d666c61742d737175617265)](https://albertoarena.github.io/laravel-event-sourcing-generator)[![Latest Version on Packagist](https://camo.githubusercontent.com/fedbe866c6639c2ebc1b613acd00bfe2f4dcec1f79749ae04c5eac858e9cbd95/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c626572746f6172656e612f6c61726176656c2d6576656e742d736f757263696e672d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/albertoarena/laravel-event-sourcing-generator)[![Total Downloads](https://camo.githubusercontent.com/db396be4241523eca6071976d2b190b56c5ef734265e2c5fb426558909d4b462/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616c626572746f6172656e612f6c61726176656c2d6576656e742d736f757263696e672d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/albertoarena/laravel-event-sourcing-generator)[![License](https://camo.githubusercontent.com/10e85a5778fe7601504a17ecd18dfa7097f473186b0f947bc10db2d3e4f530e4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d7265642e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Code Size](https://camo.githubusercontent.com/01a9a7b044c97d2ec4f21a21922970f65c87b011c2a1c4aa64654dc7e95a8974/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f616c626572746f6172656e612f6c61726176656c2d6576656e742d736f757263696e672d67656e657261746f72)](https://camo.githubusercontent.com/01a9a7b044c97d2ec4f21a21922970f65c87b011c2a1c4aa64654dc7e95a8974/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f616c626572746f6172656e612f6c61726176656c2d6576656e742d736f757263696e672d67656e657261746f72)[![Repo views](https://raw.githubusercontent.com/albertoarena/laravel-event-sourcing-generator/traffic-data/badge.svg)](https://raw.githubusercontent.com/albertoarena/laravel-event-sourcing-generator/traffic-data/badge.svg)

Laravel event sourcing generator scaffolds complete domain structures for [Spatie's Laravel Event Sourcing](https://github.com/spatie/laravel-event-sourcing), providing a single Artisan command to generate events, projections, projectors, aggregates, reactors, actions, DTOs, notifications, and PHPUnit tests — optionally straight from an existing migration.

📖 Documentation
---------------

[](#-documentation)

**Full documentation is at [albertoarena.github.io/laravel-event-sourcing-generator](https://albertoarena.github.io/laravel-event-sourcing-generator).**

- [Installation](https://albertoarena.github.io/laravel-event-sourcing-generator/getting-started/installation/)
- [Quick start](https://albertoarena.github.io/laravel-event-sourcing-generator/getting-started/quick-start/)
- [Guide](https://albertoarena.github.io/laravel-event-sourcing-generator/guide/basic-usage/) — basic &amp; advanced usage, domains, migrations, unit tests
- [Command options reference](https://albertoarena.github.io/laravel-event-sourcing-generator/reference/command-options/)

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

[](#installation)

```
composer require albertoarena/laravel-event-sourcing-generator
```

### Compatibility

[](#compatibility)

LaravelPHPTestbench11.x (deprecated)8.3, 8.49.x12.x8.3, 8.4, 8.510.x13.x8.3, 8.4, 8.511.x**PHP:** 8.3 – 8.5 · **Spatie Laravel Event Sourcing:** 7.x

Quick start
-----------

[](#quick-start)

```
php artisan make:event-sourcing-domain Animal --domain=Animal
```

This creates a complete event-sourced domain (events, projections, projectors, actions and DTOs) in `app/Domain/Animal/Animal/`. Add `--aggregate=1`, `--reactor=1`, `--unit-test`, `--notifications=…` and more — see the [documentation](https://albertoarena.github.io/laravel-event-sourcing-generator) for every option and worked examples.

**Using Claude Code?** Install the companion [claude-laravel-event-sourcing](https://github.com/albertoarena/claude-laravel-event-sourcing) skill to scaffold domains conversationally.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for what has changed recently.

Contributing
------------

[](#contributing)

Feel free to fork, improve and create a pull request. Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](LICENSE.md) for more information.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance100

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 99.3% 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 ~14 days

Recently: every ~117 days

Total

45

Last Release

4d ago

Major Versions

v0.1.27 → v1.0.02024-11-25

PHP version history (4 changes)v0.1.0PHP ^8.2

v1.0.7PHP ^8.2|^8.3

v1.0.13PHP ^8.3|^8.4

v1.1.0PHP ^8.3|^8.4|^8.5

### Community

Maintainers

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

---

Top Contributors

[![albertoarena](https://avatars.githubusercontent.com/u/1126630?v=4)](https://github.com/albertoarena "albertoarena (137 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

aggregate-rootartisan-commandcode-generatorcqrsddddomain-driven-designevent-sourcinglaravellaravel-packagephpphpunitprojectorreactorscaffoldingspatie-laravel-event-sourcing

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/albertoarena-laravel-event-sourcing-generator/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.5k](/packages/larastan-larastan)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[laravel/surveyor

Static analysis tool for Laravel applications.

86121.4k13](/packages/laravel-surveyor)[illuminate/testing

The Illuminate Testing package.

3316.5M139](/packages/illuminate-testing)

PHPackages © 2026

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