Download the PHP package ddd-module/snapshotting without Composer
On this page you can find all versions of the php package ddd-module/snapshotting. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ddd-module/snapshotting
More information about ddd-module/snapshotting
Files in ddd-module/snapshotting
Package snapshotting
Short Description POC for snapshotting aggregates in broadway/broadway
License proprietary
Informations about the package snapshotting
snapshotting
Proof-of-concept component providing snapshotting functionality to broadway/broadway.
Documentation
This project demonstrates taking and using snapshots of an aggregate root in the EventSourcingRepository.
Snaphots can be triggered using different strategies like once every number of events or
after an amount of time has passed. The EventCountTrigger implements the former strategy.
Getting started
This repository is just a library. It lacks (for now) implementations of the SnapshotRepository.
For example if you want store your events and snapshots in a database using doctrine/dbal
you will have to:
- create a
DBALSnapshotRepositoryimplementing theSnapshotRepositoryto store and fetch snapshots. You wil have to figure out how to serialize your aggregate root.
License
This project is licensed under the MIT License - see the LICENSE file for details
All versions of snapshotting with dependencies
ext-json Version *
doctrine/dbal Version ^2.9 | ^3.3 | ^4.2
ddd-module/broadway Version ^1.0
ddd-module/value-object Version ^1.0
ddd-module/base Version ^1.0