zjkiza / dto-mapper
Mapping Symfony entity to dto and dto to Symfony entity.
v0.9.0
2026-10-29 19:03 UTC
Requires
- php: >=8.2
- doctrine/collections: ^1.5 || ^2.1
- doctrine/orm: ^2.17 || ^3
- doctrine/persistence: ^2.4 || ^3 || ^4
- ramsey/uuid-doctrine: ^2.0
- symfony/config: ^5.4 || ^6.0 || ^7.0 || ^8.0
- symfony/console: ^5.4 || ^6.0 || ^7.0 || ^8.0
- symfony/dependency-injection: ^5.4 || ^6.0 || ^7.0 || ^8.0
- symfony/http-kernel: ^5.4 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- dama/doctrine-test-bundle: ^8.4
- doctrine/data-fixtures: ^1.7 || ^2.0
- doctrine/doctrine-bundle: ^2.12 || ^3.3
- doctrine/doctrine-fixtures-bundle: ^3.5 || ^4.3
- friendsofphp/php-cs-fixer: ^3.52
- matthiasnoback/symfony-dependency-injection-test: ^6.0
- phpmd/phpmd: ^3.0
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpstan/phpstan-strict-rules: ^2.1
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^11.5 || ^12.0 || ^13.0
- psalm/plugin-phpunit: ^0.19.5
- psalm/plugin-symfony: ^5.2
- rector/rector: ^2.1.4
- symfony/framework-bundle: ^6.4 || ^7.0 || ^8.0
- symfony/phpunit-bridge: ^7.4 || ^8.0
- symfony/property-info: ^6.4 || ^7.0 || ^8.0
- vimeo/psalm: ^6.10
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
Mapping Symfony entity to dto, dto to Symfony entity, Symfony entity collection to dto and dto collection to Symfony entity collection. Bundle is based on using setters and getters from entity.
Requirements
| Package | Supported versions | Tested in CI |
|---|---|---|
| PHP | 8.2 - 8.5 | 8.2, 8.3, 8.4 (8.5 experimental) |
| Symfony | 5.4, 6.4, 7.x, 8.x | 6.4, 7.4, 8.1 |
| Doctrine ORM | 2.17, 3.x | 2.17 (lowest), 3.x |
| Doctrine Persistence | 2.4 - 4.x | 2.5 (lowest), 4.x |
Symfony 5.4 is supported by the bundle code, but it is not covered by the automated tests because the test stack (PHPUnit 11.5 or newer, DAMA Doctrine test bundle) requires Symfony 6.4 or newer.
Table of contents
- Installation and configuration
- Instructions for setting up DTO and Entity to work with the mapper:
- Working with the mapper
Planned
- support that all data can be sent via the entity constructor.