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

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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