Use Prooph Event Store with Doctrine DBAL.
The database structure depends on the stream strategies you want to use for your aggregate roots. You can find example SQLs for MySql in the scripts folder and an EventStoreSchema tool which you can use an a doctrine migrations scirpt.
The database schema is only a suggestion. The
aggregate_type
column has a length of 150 chars. If you have very long class names you should increase this length, otherwise it could lead to errors in your application. This length should be equal with theaggregate_type
length in the snapshot table.
- PHP >= 5.5
- Doctrine DBAL ^2.4
- Prooph Event Store ^5.0
Released under the New BSD License.