spatie / laravel-event-projector
Event sourcing for artisans
Installs: 72 743
Dependents: 3
Suggesters: 0
Security: 0
Stars: 660
Watchers: 29
Forks: 64
Open Issues: 0
Requires
- php: ^7.3
- illuminate/console: ^6.0
- illuminate/database: ^6.0
- illuminate/events: ^6.0
- illuminate/support: ^6.0
- league/flysystem: ^1.0.45
- spatie/laravel-schemaless-attributes: ^1.6
- symfony/finder: ^4.2
- symfony/property-access: ^4.0
- symfony/serializer: ^4.0
Requires (Dev)
- mockery/mockery: ^1.1
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
- spatie/phpunit-snapshot-assertions: ^2.1
Suggests
- spatie/laravel-event-sourcing: spatie/laravel-event-projector has been renamed to spatie/laravel-event-sourcing. Please upgrade
- dev-master
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.1
- 3.0.0
- v2.x-dev
- 2.8.2
- 2.8.1
- 2.8.0
- 2.7.0
- 2.6.3
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.0
- 2.1.1
- 2.1.0
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- v1.x-dev
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.0.11
- 0.0.10
- 0.0.9
- 0.0.8
- 0.0.7
- 0.0.6
- 0.0.5
- 0.0.4
- 0.0.3
- 0.0.2
- 0.0.1
This package is auto-updated.
Last update: 2019-09-20 09:18:56 UTC
README
THIS PACKAGE HAS BEEN SUPERCEDED BY SPATIE/LARAVEL-EVENT-SOURCING
Because the package now does more than just providing projectors, we decided to change the name of the package to spatie/laravel-event-sourcing
.
Upgrading from v3 of laravel-event-projector
to v1
of laravel-event-sourcing is easy. Take a look at the upgrade guide for laravel-event-sourcing.
Event sourcing for Artisans 📽
This package aims to be the entry point to get started with event sourcing in Laravel. It can help you with setting up aggregates, projectors, and reactors.
If you've never worked with event sourcing, or are uncertain about what aggregates, projectors and reactors are head over to the getting familiar with event sourcing section in our docs.
Event sourcing might be a good choice for your project if:
- your app needs to make decisions based on the past
- your app has auditing requirements: the reason why your app is in a certain state is equally as important as the state itself
- you foresee that there will be a reporting need in the future, but you don't know yet which data you need to collect for those reports
If you want to skip to reading code immediately, here are some example apps. In each of them, you can create accounts and deposit or withdraw money.
- Larabank built traditionally without event sourcing
- Larabank built with projectors
- Larabank built with aggregates and projectors
Documentation
You can find installation instructions and detailed instructions on how to use this package at the dedicated documentation site.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.
Postcardware
You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.
We publish all received postcards on our company website.
Credits
The aggregate root functionality is heavily inspired by Frank De Jonge's excellent EventSauce package. A big thank you to Dries Vints for giving lots of valuable feedback while we were developing the package.
Support us
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Does your business depend on our contributions? Reach out and support us on Patreon. All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
Footnotes
1 Quote taken from Event Sourcing made Simple
License
The MIT License (MIT). Please see License File for more information.