An Object-Document Mapper (ODM) for Doctrine ORM leveraging new JSON types of modern RDBMS. Did you ever dream of a tool creating powerful data models mixing traditional, efficient relational mappings with modern schema-less and NoSQL-like ones? With Doctrine JSON ODM, it's now possible to create and query such hybrid data models with ease. Thanks to modern JSON types of RDBMS, querying schema-less documents is easy, powerful and fast as hell (similar in performance to a MongoDB database)! You can even define indexes for those documents. Doctrine JSON ODM allows to store PHP objects as JSON documents in modern, dynamic columns of an RDBMS. It works with JSON and JSONB columns of PostgreSQL (>= 9.4) and the JSON column type of MySQL.

Features

  • To install the library, use Composer, the PHP package manager
  • composer require dunglas/doctrine-json-odm If you are using Symfony or API Platform, you don't need to do anything else
  • Doctrine JSON ODM provides a json_document column type for properties of Doctrine entities
  • You can store any type of (serializable) PHP data structures in properties mapped using the json_document type
  • When the object will be hydrated, the JSON content of this column is transformed back to its original values
  • You can introduce type aliases at any point in time

Project Samples

Project Activity

See All Activity >

Categories

JSON

License

MIT License

Follow Doctrine JSON ODM

Doctrine JSON ODM Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Doctrine JSON ODM!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript JSON Software

Registered

2023-10-26