Use Prooph Event Store with Flywheel.
Flywheel is a serverless document database which only uses flat files on your local filesystem to store the data. All the events will be stored and loaded from a choosen directory. This is well suited when you bootstrap an application and you don't need a real database server right away. It can also be a good candidate for writing functionnal tests.
But of course you must not run it in production since it is not designed to handle a huge amount of events and doesn't manage transactions.
You can install this package via Composer:
composer require prooph/event-store-flywheel-adapter
See the quickstart example.
It creates some events and store them in JSON files in the quickstart/event_store
directory.
Here is an example of a created JSON file:
{
"event_id": "4e5bba37-e2bb-46d3-9988-e2ec6b02e664",
"version": 1,
"event_name": "ProophTest\\EventStore\\Mock\\UserCreated",
"payload": {
"name": "Max Mustermann"
},
"metadata": {
"tag": "person"
},
"created_at": "2016-02-25T13:28:54.365200"
}
- File issues at https://github.com/prooph/event-store-flywheel-adapter/issues.
- Say hello in the prooph gitter chat.
Please feel free to fork, extend existing and send a pull request with your changes!
To establish a consistent code quality, please provide unit tests for all your changes.
You are also encouraged to use the composer lint
command to validate the coding standards.
Released under the New BSD License.