event-engine/php-document-store
event-engine/persistence for projection pipelines.replaceDoc and getPartialDoc optimize high-frequency writes (e.g., user profile updates) by avoiding full document merges.filterDocIds), reducing reliance on external search layers like Elasticsearch for simple use cases.Adopt if:
event-engine/persistence for event storage and want alignment in your read model layer.Look Elsewhere if:
jsonb or a dedicated OLAP tool.For Executives: *"This package lets us standardize how we store and retrieve documents across our Laravel services—whether for testing, event sourcing, or production—without locking us into a single database. Think of it as a universal adapter for document storage:
It’s low-risk (MIT license, minimal dependencies) and high-reward for consistency and maintainability. The cost? A small upfront effort to integrate it—paying off in faster development cycles and easier scaling."*
For Engineering: *"This is a contract-first document store that gives us:
DocumentStore interface—no business logic changes.replaceDoc) avoid messy recursive merges.AndFilter, OrFilter) enable efficient queries without external search layers.event-engine/persistence if we’re using it, reducing friction in event-sourcing pipelines.Tradeoffs:
Recommendation: Start with the in-memory store for testing and PostgreSQL for production, then extend to other backends as needed. This gives us immediate value while keeping options open."*
For Architects: *"This package addresses three critical gaps in Laravel’s ecosystem:
Integration Strategy:
PostgresDocumentStore in production, InMemoryDocumentStore in tests).event-engine/persistence to project events into documents.Risk Mitigation:
replace for local dev.composer.json and use migration scripts for upgrades.Outcome: A scalable, testable document layer that reduces coupling and accelerates feature delivery."*
How can I help you explore Laravel packages today?