PHPackages                             rtxlabs/datatransformation-bundle - 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. rtxlabs/datatransformation-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

rtxlabs/datatransformation-bundle
=================================

Provides mappers for generate complex JSON outputs from entities

1.0.0(12y ago)131.5k1[1 issues](https://github.com/RtxLabs/DataTransformationBundle/issues)[1 PRs](https://github.com/RtxLabs/DataTransformationBundle/pulls)MITPHP

Since Sep 13Pushed 12y ago5 watchersCompare

[ Source](https://github.com/RtxLabs/DataTransformationBundle)[ Packagist](https://packagist.org/packages/rtxlabs/datatransformation-bundle)[ RSS](/packages/rtxlabs-datatransformation-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

DataTransformation Bundle
=========================

[](#datatransformation-bundle)

Symfony2 Bundle that can help building REST services.

[![Build Status](https://camo.githubusercontent.com/1fa44ab42d85abb4098f4696cbe058a24069ce799691015503712a0ae946f2fd/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f5274784c6162732f446174615472616e73666f726d6174696f6e42756e646c652e706e67)](http://travis-ci.org/RtxLabs/DataTransformationBundle)

Example
-------

[](#example)

Providing a REST service that returns a list of contacts linked with companies. The service has to deliver something like that:

```
[{
    "id": 1181,
    "address": null,
    "email": "max.mustermann@dtb.com",
    "firstname": "Max",
    "lastname": "Mustermann",
    "company": 7
} , {
    "id" : 1177,
    "address" : null,
    "email" : "uwe.klawitter@dtb.com",
    "firstname" : "Uwe",
    "lastname" : "Klawitter",
    "company": 298
}]
```

To generate this, some Doctrine entities have to be loaded from a repository and converted into json. Performing an json\_encode() to on the entities won't work, because the entity contains proxy objects to the company. To solve this, the DoctrineBinder can be used:

```
$result = $this->container->get('doctrinebinder')->bind($models)->execute();

// finally the result has to be converted into json to return it as an response
$json = Dencoder::decode($result);
```

Documentation
-------------

[](#documentation)

- [Installation](Resources/doc/installation.md)
- [Binding objects / entities](Resources/doc/binding_objects.md)
- [Binding collections](Resources/doc/binding_collections.md)
- [Joining referenced entities](Resources/doc/joining.md)
- [Binding data to entities](Resources/doc/binding_to_objects.md)
- [Binding calculated values](Resources/doc/calculation.md)
- [Encode and decode bound values](Resources/doc/dencoder.md)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 98% 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

Unknown

Total

1

Last Release

4631d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/596668dd7072e7a2298b3d7fcb21ea5ab5bedb70d5b8a6de72966db31debd93c?d=identicon)[thaberkern](/maintainers/thaberkern)

---

Top Contributors

[![uklawitter](https://avatars.githubusercontent.com/u/767393?v=4)](https://github.com/uklawitter "uklawitter (49 commits)")[![fesja](https://avatars.githubusercontent.com/u/10658?v=4)](https://github.com/fesja "fesja (1 commits)")

---

Tags

jsonbundledoctrineentity

### Embed Badge

![Health badge](/badges/rtxlabs-datatransformation-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/rtxlabs-datatransformation-bundle/health.svg)](https://phpackages.com/packages/rtxlabs-datatransformation-bundle)
```

###  Alternatives

[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4636.8M12](/packages/fresh-doctrine-enum-bundle)[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[omines/datatables-bundle

Symfony DataTables Bundle with native Doctrine ORM, Elastica and MongoDB support

2851.4M6](/packages/omines-datatables-bundle)[lexik/monolog-browser-bundle

This Symfony2 bundle provides a Doctrine DBAL handler for Monolog and a web UI to display log entries

6257.8k](/packages/lexik-monolog-browser-bundle)[indaxia/doctrine-orm-transformations

Provides JSON-ready Doctrine ORM Entity-Array transfomtaions

1296.4k](/packages/indaxia-doctrine-orm-transformations)

PHPackages © 2026

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