PHPackages                             sbooker/doctrine-object-mapping - 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. sbooker/doctrine-object-mapping

ActiveLibrary

sbooker/doctrine-object-mapping
===============================

Doctrine object types mapping support

1.2.0(1y ago)14.5k1MITPHPPHP &gt;=8.2

Since Jun 4Pushed 1y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (4)Versions (6)Used By (1)

Doctrine object mapping
=======================

[](#doctrine-object-mapping)

[![Latest Version](https://camo.githubusercontent.com/b24386be08a7a00ca5003f1d0423a613243701b298355780fe5a1280d73f3506/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73626f6f6b65722f646f637472696e652d6f626a6563742d6d617070696e672e7376673f7374796c653d666c61742d737175617265)](https://img.shields.io/packagist/v/sbooker/doctrine-object-mapping)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/sbooker/doctrine-object-mapping/blob/master/LICENSE)[![PHP Version](https://camo.githubusercontent.com/eba7ac1af45dbd3cfd4dd5f615098dd0e297fee3e790fcb9d4976d95de297d0a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f73626f6f6b65722f646f637472696e652d6f626a6563742d6d617070696e672e7376673f7374796c653d666c61742d737175617265)](https://php.net)[![Total Downloads](https://camo.githubusercontent.com/6ba98d88294651910e5ac1fa43b0b400a2651bf18a6e81dfffa11a786d1423ca/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73626f6f6b65722f646f637472696e652d6f626a6563742d6d617070696e672e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sbooker/doctrine-object-mapping)

Maps immutable object and object list to single json field.

Installation
============

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Applications that don't use Symfony
-----------------------------------

[](#applications-that-dont-use-symfony)

### Step 1: Download library

[](#step-1-download-library)

```
$ composer require sbooker/doctrine-object-mapping
```

### Step 2: Create and register Doctrine type

[](#step-2-create-and-register-doctrine-type)

```
class Concrete { /* ... */ }

class ConcreteType extends \Sbooker\DoctrineObjectMapping\ObjectType
{
    protected function getObjectClass(): string
    {
        return Concrete::class;
    }

    public function getName()
    {
        return 'concrete';
    }
}

\Doctrine\DBAL\Types\Type::addType('concrete', ConcreteType::class);

// Create or get normalizer
$normalizer = new \Symfony\Component\Serializer\Normalizer\ObjectNormalizer(/*...*/);

// Set serializer to type on boot application
/** @var \Sbooker\DoctrineObjectMapping\NormalizableType $type */
$type = \Doctrine\DBAL\Types\Type::getType('concrete');
$type->setNormalizer($normalizer);
$type->setDenormalizer($normalizer);
```

Applications that use Symfony
-----------------------------

[](#applications-that-use-symfony)

Use [`sbooker/doctrine-object-mapping-bundle`](https://github.com/sbooker/doctrine-object-mapping-bundle)

License
-------

[](#license)

See [LICENSE](https://github.com/sbooker/doctrine-object-mapping/blob/master/LICENSE) file.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~533 days

Total

4

Last Release

564d ago

Major Versions

0.5.0 → 1.0.02022-03-30

PHP version history (3 changes)0.5.0PHP ^7.2

1.0.0PHP ^7.3 || ^8.0

1.2.0PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/f97b1f6ea03776dda6e0ec26d1ff3a3309972d65bd1376eb111c2b35017af339?d=identicon)[sbooker](/maintainers/sbooker)

---

Top Contributors

[![sbooker](https://avatars.githubusercontent.com/u/3658174?v=4)](https://github.com/sbooker "sbooker (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sbooker-doctrine-object-mapping/health.svg)

```
[![Health](https://phpackages.com/badges/sbooker-doctrine-object-mapping/health.svg)](https://phpackages.com/packages/sbooker-doctrine-object-mapping)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M648](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[shopware/administration

Administration frontend for the Shopware Core

413.9M75](/packages/shopware-administration)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
