MongoDB EventStore implementation for Prooph EventStore
- MongoDB >= 4.0
- MongoDB PHP Driver >= 1.5.2
Please execute \Prooph\EventStore\MongoDb\MongoDbHelper::createEventStreamsCollection
on your server.
This will setup the required event streams table.
If you want to use the projections, run additionally \Prooph\EventStore\MongoDb\MongoDbHelper::createProjectionCollection
on your server.
If you want to run the unit tests locally you need a running MongoDB Replica cluster. You need to set these environment
variables DB_URI
, DB_REPLICA_SET
and DB_NAME
.
$ vendor/bin/phpunit -c phpunit.xml.dist
./start.sh
docker-compose -f docker-compose-tests.yml run --rm php php vendor/bin/phpunit -c phpunit.xml.dist
./down.sh
- Ask questions on Stack Overflow tagged with #prooph.
- File issues at https://github.com/prooph/event-store/issues.
- Say hello in the prooph gitter chat.
Please feel free to fork and extend existing or add new plugins and send a pull request with your changes! To establish a consistent code quality, please provide unit tests for all your changes and may adapt the documentation.
Released under the New BSD License.