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 today

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 69% 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

4676d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59095?v=4)[Timo Haberkern](/maintainers/thaberkern)[@thaberkern](https://github.com/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

[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1189.8k](/packages/rcsofttech-audit-trail-bundle)[fresh/doctrine-enum-bundle

Provides support of ENUM type for Doctrine2 in Symfony applications.

4747.0M12](/packages/fresh-doctrine-enum-bundle)[omines/datatables-bundle

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

2841.5M6](/packages/omines-datatables-bundle)[ahmed-bhs/doctrine-doctor

Runtime analysis tool for Doctrine ORM integrated into Symfony Web Profiler. Unlike static linters, it analyzes actual query execution at runtime to detect performance bottlenecks, security vulnerabilities, and best practice violations during development with real execution context and data.

9410.8k](/packages/ahmed-bhs-doctrine-doctor)

PHPackages © 2026

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