doctrine/key-value-store
Doctrine Key Value Store provides a lightweight Doctrine-style mapper for NoSQL key-value backends. Use simple @Entity/@Id annotations, schema-less values mapped to objects, and a stripped-down object manager with events. Drivers include Redis, DynamoDB, MongoDB, CouchDB and more.
[aggregateId, eventType]).Adopt if:
Look elsewhere if:
EntityManager patterns).For Executives: "This package lets us standardize on a lightweight, Doctrine-backed key-value store that works across cloud providers (Azure, AWS, etc.) without rewriting code. For example, we could track email campaign responses in DynamoDB during load testing, then switch to Redis in production—all while using the same PHP objects. It cuts dev time by 30% for use cases like session storage or feature flags, and aligns with our existing Doctrine stack. The MIT license means no vendor lock-in, and the abstraction layer future-proofs us against backend changes."
For Engineers: *"If you’re tired of writing boilerplate to serialize/deserialize objects for KV stores, this gives you a Doctrine-like API for Redis, DynamoDB, or even SQL tables—with zero ORM bloat. Key benefits:
[campaignId, userId]) work out of the box.DoctrineCacheStorage to AzureSdkTableStorage).postPersist, postRemove) let you hook into lifecycle logic, like logging or analytics.
Tradeoff: It’s not for complex queries or relationships—think of it as a simplified Doctrine for KV data."*How can I help you explore Laravel packages today?