https://github.com/unixslayer/event-sourcing
Basic implementation of Event Sourcing.
https://github.com/unixslayer/event-sourcing
ddd event-sourcing prooph
Last synced: 3 months ago
JSON representation
Basic implementation of Event Sourcing.
- Host: GitHub
- URL: https://github.com/unixslayer/event-sourcing
- Owner: unixslayer
- License: bsd-3-clause
- Created: 2020-05-04T16:02:01.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-08-05T08:38:42.000Z (about 4 years ago)
- Last Synced: 2025-04-02T12:52:05.475Z (6 months ago)
- Topics: ddd, event-sourcing, prooph
- Language: PHP
- Homepage:
- Size: 49.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# unixslayer/event-sourcing
[![Tests Status][ico-tests]][link-tests]
[![Analyse Status][ico-analysis]][link-analysis]
[![Coverage Status][ico-coverage]][link-coverage]
[![GitHub release (latest by date)][ico-release]][link-release]
[![GitHub][ico-license]](LICENSE.md)Basic implementation of Event Sourcing due to fact that [prooph/event-sourcing](https://github.com/prooph/event-sourcing) is abandoned. If you are looking for Aggregate repository, check out [unixslayer/event-store](https://github.com/unixslayer/event-store).
## Installation
You can install this via composer by running `composer require unixslayer/event-sourcing` or adding it as requirement to your composer.json
## Usage
This library comes with basic implementation of Event Sourcing which is only two classes:
- aggregate root
- aggregate eventThis repository is inspired from Prooph solution with assimption of being independent from any framework. If you are familiar with [prooph/event-sourcing](https://github.com/prooph/event-sourcing), you'll know what to expect. Otherwise, check out Prooph's repository or [tests](./tests/Domain/CartTest.php).
## Support
I strongly recommend for implementing Event Sourcing by your own. You can accomplish that in a way described [here](https://unixslayer.github.io/how-i-did-my-own-implementation-of-event-sourcing) and [here](https://unixslayer.github.io/implementing-aggregate-repository) or [here](https://github.com/prooph/documentation/blob/master/event-store-client/blueprints.md).
If for some reason you find this library useful and use it, feel free to file an issue. Also, PR will be awesome.[ico-tests]: https://github.com/unixslayer/event-sourcing/actions/workflows/tests.yml/badge.svg
[ico-analysis]: https://github.com/unixslayer/event-sourcing/actions/workflows/static-analysis.yml/badge.svg
[ico-coverage]: https://coveralls.io/repos/unixslayer/event-sourcing/badge.svg?branch=master&service=github
[ico-release]: https://img.shields.io/github/v/release/unixslayer/event-sourcing
[ico-license]: https://img.shields.io/github/license/unixslayer/event-sourcing[link-tests]: https://github.com/unixslayer/event-sourcing/actions/workflows/tests.yml
[link-analysis]: https://github.com/unixslayer/event-sourcing/actions/workflows/static-analysis.yml
[link-coverage]: https://coveralls.io/github/unixslayer/event-sourcing?branch=master
[link-release]: https://github.com/unixslayer/event-sourcing/releases
[link-license]: LICENSE.md