controlbit/dto-mapper

Installs: 124

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/controlbit/dto-mapper

v1.0 2026-02-08 16:20 UTC

This package is auto-updated.

Last update: 2026-02-08 16:22:20 UTC


README

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 and you're good!

Documentation

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')