dunglas/doctrine-json-odm
Doctrine JSON ODM maps JSON documents to PHP objects using Doctrine-style metadata, enabling persistence and querying of JSON data through a familiar ORM-like API. Useful for working with JSON stored in files or other backends while keeping domain models clean.
Feature Expansion for JSON Data Handling:
jsonb optimization via the new jsonb_document type (DBAL 4.3.0+), improving performance for JSON-heavy workloads (e.g., analytics, nested configurations).Roadmap for Flexible Data Models:
jsonb indexing).Build vs. Buy:
Use Cases (updated):
jsonb_document for indexed, fast queries on nested data (e.g., filtering user->preferences->theme in PostgreSQL).Adopt if:
jsonb) or MySQL (JSON).jsonb_document type for optimized PostgreSQL jsonb storage.Look elsewhere if:
For Executives:
"This updated package (v1.5.0) lets us store and query complex JSON data—like user settings or API payloads—directly in PostgreSQL/MySQL without switching to a NoSQL system. The new jsonb_document type optimizes performance for PostgreSQL, while Symfony 8 support ensures we’re future-proof. It’s a cost-effective way to modernize data models for dynamic features (e.g., feature flags, analytics) while keeping our stack simple and scalable. Think of it as ‘SQL’s answer to MongoDB flexibility’—with better query tools and lower operational overhead."
For Engineering: *"With v1.5.0, we can now:
jsonb optimizations via jsonb_document (DBAL 4.3.0+), enabling indexed queries on nested JSON (e.g., WHERE user.data->>'role' = 'admin').feature_flags as JSON).How can I help you explore Laravel packages today?