silpo-tech / mapper-bundle
Symfony mapper bundle, easy way to convert data.
Installs: 385
Dependents: 4
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/silpo-tech/mapper-bundle
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