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.0(3mo ago)1133[1 PRs](https://github.com/controlbit/dto-mapper/pulls)CC-BY-4.0PHPPHP &gt;=8.2

Since Mar 14Pushed 1mo 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 1mo ago

READMEChangelog (3)Dependencies (19)Versions (6)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

43

—

FairBetter than 91% of packages

Maintenance86

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Total

3

Last Release

99d ago

Major Versions

v0.1.1 → v1.02026-02-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/ac580ac8e9fb7afc42de276664939a427f746cdc210f7348a41454cdbf0ecfc6?d=identicon)[choks87](/maintainers/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

[coolsam/nested-comments

Add Nested comments/replies to filament forms, infolists and resources

3110.0k](/packages/coolsam-nested-comments)

PHPackages © 2026

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