Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Event Store Mongodb Adapter

Event Store Mongodb Adapter Laravel Package

prooph/event-store-mongodb-adapter

MongoDB adapter for prooph/event-store that persists event streams and snapshots in MongoDB, letting event-sourced PHP applications use a document database as their event store with Prooph-compatible stream and projection repositories.

Deep Wiki
Context7

[Deprecated] MongoDB Adapter for ProophEventStore

Frequently asked questions about Event Store Mongodb Adapter
What is prooph/event-store-mongodb-adapter used for?
It is a MongoDB adapter for prooph/event-store that stores event streams and snapshots in MongoDB. It lets Prooph-compatible event-sourced PHP applications use MongoDB as the persistence layer instead of a relational database. The package provides stream and projection repository integration for that setup.
Is prooph/event-store-mongodb-adapter deprecated?
Yes. The package is explicitly marked as deprecated in its description. That means it is not a good choice for new projects and may not receive ongoing maintenance or compatibility updates. Existing users should plan a migration path to a supported event store adapter.
How do I install prooph/event-store-mongodb-adapter with Composer?
Install it with Composer using the package name prooph/event-store-mongodb-adapter. Because it is deprecated, check Packagist and the package metadata for the available versions and their PHP requirements before adding it to a project. Pin a compatible version and test it against your prooph/event-store version.
Does prooph/event-store-mongodb-adapter work with Laravel?
The package is a PHP adapter for prooph/event-store rather than a Laravel-specific package. It can be used inside a Laravel application through Composer and Laravel's service container, but it does not provide Laravel-native configuration or facades. You would wire the MongoDB connection and Prooph event store services yourself.
How do I configure the MongoDB connection for this Prooph event store adapter?
Configuration depends on the adapter version and how you construct the underlying MongoDB client. You typically provide a MongoDB connection or client to the adapter, then pass the adapter into your Prooph event store setup. Since the package is deprecated, verify the exact constructor and options against the version you install.
Can this adapter store both event streams and snapshots in MongoDB?
Yes. The package is described as persisting event streams and snapshots in MongoDB for Prooph-compatible repositories. That allows event-sourced applications to keep stream data and snapshot data in the same document database. Review your Prooph configuration to ensure both stream and snapshot repositories use the adapter correctly.
What Laravel versions are supported by prooph/event-store-mongodb-adapter?
There is no current Laravel version support matrix in the provided package context. The adapter is not Laravel-specific and is deprecated, so Laravel compatibility depends on its PHP and prooph/event-store requirements. Check Composer constraints and test against your Laravel version before relying on it.
How should I test a MongoDB event store adapter in a Laravel application?
Use an isolated MongoDB database or container for integration tests so event streams and snapshots are written to a disposable store. Exercise stream creation, appending events, loading aggregates, and snapshot persistence through the Prooph repositories. In Laravel, run these tests in CI with the same MongoDB and PHP versions used in production.
Is prooph/event-store-mongodb-adapter safe for production event sourcing?
It is deprecated, so it is not recommended for new production systems. If you already use it, pin the package version, monitor PHP and prooph/event-store compatibility, and back up MongoDB data carefully. Plan a migration to a maintained adapter to reduce long-term maintenance risk.
What are the alternatives to prooph/event-store-mongodb-adapter?
Consider supported prooph/event-store adapters, such as relational or other maintained persistence adapters, depending on your infrastructure. You can also evaluate actively maintained event sourcing libraries with MongoDB support. Since this package is deprecated, choose an alternative with current documentation and compatibility guarantees.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib