silpo-tech/mapper-bundle

Symfony mapper bundle, easy way to convert data.

v1.0.0 2025-09-23 14:08 UTC

This package is auto-updated.

Last update: 2025-09-23 14:22:56 UTC


README

CI codecov License: MIT

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