PHPackages                             goodwix/doctrine-json-odm - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. goodwix/doctrine-json-odm

ActiveLibrary[Database &amp; ORM](/categories/database)

goodwix/doctrine-json-odm
=========================

JSON Object-Document Mapping bundle for Symfony and Doctrine

v0.6.0(4y ago)2226.0k↓35.7%5[2 issues](https://github.com/goodwix/doctrine-json-odm/issues)[1 PRs](https://github.com/goodwix/doctrine-json-odm/pulls)MITPHPPHP ^7.4|^8.0

Since Jan 17Pushed 3y ago3 watchersCompare

[ Source](https://github.com/goodwix/doctrine-json-odm)[ Packagist](https://packagist.org/packages/goodwix/doctrine-json-odm)[ RSS](/packages/goodwix-doctrine-json-odm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (15)Versions (16)Used By (0)

Doctrine JSON ODM library
=========================

[](#doctrine-json-odm-library)

[![Latest Stable Version](https://camo.githubusercontent.com/39629aac174606e8e51ee6714eaaa8678cf1d2def9c89e92b1a74bbc5b9777bd/68747470733a2f2f706f7365722e707567782e6f72672f676f6f647769782f646f637472696e652d6a736f6e2d6f646d2f762f737461626c65)](https://packagist.org/packages/goodwix/doctrine-json-odm)[![Total Downloads](https://camo.githubusercontent.com/3239807b6eb672240d3e612e3777031370f824c51e36ca10e8635cee4509aee9/68747470733a2f2f706f7365722e707567782e6f72672f676f6f647769782f646f637472696e652d6a736f6e2d6f646d2f646f776e6c6f616473)](https://packagist.org/packages/goodwix/doctrine-json-odm)[![License](https://camo.githubusercontent.com/b09337842cdde772d71aa0d6d05baf5473faf9976f5a2dd28ce9233c9fb29102/68747470733a2f2f706f7365722e707567782e6f72672f676f6f647769782f646f637472696e652d6a736f6e2d6f646d2f6c6963656e7365)](https://packagist.org/packages/goodwix/doctrine-json-odm)[![Build Status](https://camo.githubusercontent.com/2be2fc93fe107a4ce11cfae8124843ea6ff8e76921f7c768aa6131207c7807c4/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f6f647769782f646f637472696e652d6a736f6e2d6f646d2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/goodwix/doctrine-json-odm/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/8b16eb234d434bbb1fc030f4384fa4c8bdb09c8937a1ca271513a1f1dd89b03a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f6f647769782f646f637472696e652d6a736f6e2d6f646d2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/goodwix/doctrine-json-odm/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/602307fa3f42b4c5b7e86ab63d511e0bb5191dfcc57e1a8b3b7e7dd577a2f899/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f676f6f647769782f646f637472696e652d6a736f6e2d6f646d2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/goodwix/doctrine-json-odm/?branch=master)

Inspired by

This is beta version of library. Main differences from Dunglas library:

- library does not store any metadata in json field;
- doctrine ODM type uses main Symfony serializer service (so you can easily extend serialization process by adding normalizers/denormalizers globally in dependency injection config);
- automatic registration of ODM types for Doctrine (using Symfony autowiring and autoconfigure features).

Features
--------

[](#features)

- Object-Document Mapping with database json types
- Doctrine 2.5+ support
- PostgreSQL 9.4+ support
- Symfony 5+ support (not tested with previous versions)
- MySQL support not tested

Additional features
-------------------

[](#additional-features)

- Automatic registering normalizers for use with Java-like collections from [ramsey/collection](https://github.com/ramsey/collection) library

Install
-------

[](#install)

### Install with Symfony 4

[](#install-with-symfony-4)

To install the library, use [Composer](https://getcomposer.org/).

```
composer require goodwix/doctrine-json-odm
```

Add lines to `config/bundles.php` (no automatic configuration is available for beta version).

```
