silpo-tech / mapper-bundle
Symfony mapper bundle, easy way to convert data.
v1.0.0
2025-09-23 14:08 UTC
Requires
- php: >=8.0
- mark-gerarts/auto-mapper-plus: ^1.3
- mark-gerarts/automapper-plus-bundle: ^1.2
- phpdocumentor/reflection-docblock: ^5.6
- symfony/dependency-injection: ^6.0|^7.0
- symfony/validator: ^6.0|^7.0
Requires (Dev)
- doctrine/doctrine-bundle: ^2.12
- doctrine/orm: *
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^2.0
- phpunit/phpunit: ^11.5
- symfony/http-kernel: 6.0|^7.0
- symfony/property-info: *
- symfony/yaml: *
README
Installation
The suggested installation method's via composer:
composer require silpo-tech/mapper-bundle
Setup
Register bundle in bundles.php file.
<?php return [ MapperBundle\MapperBundle::class => ['all' => true], AutoMapperPlus\AutoMapperPlusBundle\AutoMapperPlusBundle::class => ['all' => true] ];
Configure mappings
# this config only applies to the services created by this file _instanceof: AutoMapperPlus\AutoMapperPlusBundle\AutoMapperConfiguratorInterface: tags: ['automapper_plus.configurator'] # and add to override implementation of AutoMapperConfig automapper_plus.configuration: class: MapperBundle\Configuration\AutoMapperConfig
Tests
composer test:run