PHPackages                             controlbit/dto-mapper - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. controlbit/dto-mapper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

controlbit/dto-mapper
=====================

v1.1(yesterday)1180[2 PRs](https://github.com/controlbit/dto-mapper/pulls)CC-BY-4.0PHPPHP &gt;=8.2

Since Mar 14Pushed 2w agoCompare

[ Source](https://github.com/controlbit/dto-mapper)[ Packagist](https://packagist.org/packages/controlbit/dto-mapper)[ RSS](/packages/controlbit-dto-mapper/feed)WikiDiscussions master Synced today

READMEChangelog (3)Dependencies (38)Versions (8)Used By (0)

DTO Mapper
==========

[](#dto-mapper)

Quick setup
-----------

[](#quick-setup)

```
composer require controlbit/dto-mapper
```

Add to your `bundles.php` line:

```
ControlBit\Dto\Bridge\Symfony\DtoBundle::class                               => ['all' => true],
```

Inject `ControlBit\Dto\Contract\Mapper\MapperInterface` in your Service and Map to/from your DTOs.

Next, read [Usage](docs/usage.md) and you're good!

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

[](#documentation)

- [Installation](docs/installation.md)
- [Usage](docs/usage.md)
- [Symfony Configuration Reference](docs/configuration.md)

TODO (Upcoming):
----------------

[](#todo-upcoming)

- Mapping UploadedFile into \\SplFileInfo (could be that half of it is working already)
- Caching Mapping Metadata
- Improve error messages
- Imrove `From` attribute with support for nested objects. ex From('foo.bar.baz')

###  Health Score

47

↑

FairBetter than 93% of packages

Maintenance98

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~158 days

Total

4

Last Release

1d ago

Major Versions

v0.1.1 → v1.02026-02-08

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37302106?v=4)[choks](/maintainers/choks87)[@choks87](https://github.com/choks87)

---

Top Contributors

[![choks87](https://avatars.githubusercontent.com/u/37302106?v=4)](https://github.com/choks87 "choks87 (16 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/controlbit-dto-mapper/health.svg)

```
[![Health](https://phpackages.com/badges/controlbit-dto-mapper/health.svg)](https://phpackages.com/packages/controlbit-dto-mapper)
```

###  Alternatives

[sqmk/phue

Phue - Philips Hue PHP client

21028.6k1](/packages/sqmk-phue)[gabrielanhaia/php-circuit-breaker

Circuit breaker pattern for PHP with multiple storage adapters, event system, and manual override.

173.7k2](/packages/gabrielanhaia-php-circuit-breaker)

PHPackages © 2026

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