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
Requires
- php: >=8.2
Requires (Dev)
- dama/doctrine-test-bundle: *
- doctrine/collections: ^2.0|^3.0
- doctrine/doctrine-fixtures-bundle: ^2.0|^3.0
- doctrine/orm: ^2.0|^3.0
- infection/infection: *
- phpmd/phpmd: *
- phpstan/phpstan: *
- phpstan/phpstan-phpunit: *
- phpunit/phpunit: ^10.0
- rregeer/phpunit-coverage-check: *
- symfony/browser-kit: ^6.4|^7.0
- symfony/console: ^6.4|^7.0
- symfony/filesystem: ^6.4|^7.0
- symfony/framework-bundle: ^6.4|^7.0
- symfony/http-foundation: ^6.4|^7.0
- symfony/translation: ^6.4|^7.0
- symfony/uid: ^6.4|^7.0
- symfony/validator: ^6.4|^7.0
- symfony/yaml: ^6.4|^7.0
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
Fromattribute with support for nested objects. ex From('foo.bar.baz')