Snapshots are an optional feature.
At the moment prooph offers snapshot store implementations for:
As a general purpose helper we use the prooph/snapshotter which can be installed using
$ composer require prooph/snapshotter
PDO Snapshot Store uses the same PDO connection as for given EventStore
- Copy
config/autoload/pdo_snapshot_store.local.php.dist
toconfig/autoload/pdo_snapshot_store.local.php
and make your adjustments. - Install the needed package:
$ composer require prooph/pdo-snapshot-store
-
Execute the following script:
for MySQL:
vendor/prooph/pdo-snapshot-store/scripts/mysql_snapshot_table.sql
for Postgres:
vendor/prooph/pdo-snapshot-store/scripts/postgres_snapshot_table.sql
- Copy
config/autoload/mongo_snapshot_store.local.php.dist
toconfig/autoload/mongo_snapshot_store.local.php
and make your adjustments. - Install the needed package:
$ composer require prooph/mongodb-snapshot-store
Now as you picked and configured you snapshot store, start playing with the new feature.
Please jump to the Snapshot Tutorial !