thruster/data-mapper-bundle
A Symfony bundle that wires Thruster's data mapper into your application, adding service configuration and dependency injection for clean object-to-object and array transformations. Centralize mapping logic, reduce boilerplate, and keep data conversion reusable across Symfony projects.
composer require thruster/data-mapper-bundle
If Composer fails on modern PHP/Symfony, you are likely looking at a Symfony 2.x/3.x-era bundle. Pin your platform config or avoid it for new projects.AppKernel.php; in Symfony 4+ add it to config/bundles.php only if the bundle is actually Flex-compatible. The bundle alias is likely ThrusterDataMapperBundle or thruster_data_mapper.vendor/thruster/data-mapper-bundle/README.mdDependencyInjection/Configuration.php and Extension.php to discover config keys and service aliasesResources/config/services.xml/services.yml for the mapper service IDMapping/, Annotation/, or Resources/config/mapping for how mappings are declared// controller or service
$dto = $mapper->map($request->request->all(), CreateUserCommand::class);
Confirm the actual method name (map, mapTo, hydrate, etc.) from the bundle’s public service. If autowiring is unavailable, inject the service by its configured ID or create a public alias.services:
app.data_mapper:
alias: thruster_data_mapper.mapper
public: true
$container->get() in production code.composer show for doctrine/annotations compatibility and prefer attributes/YAML only if the bundle supports them.bin/console cache:clear) and check the bundle’s cache directory/config key.symfony/serializer for high-volume paths.Configuration.php rather than guessing YAML keys.debug:container, dump mapping metadata if available, and log source/target arrays during development. If mappings fail silently, temporarily wrap the mapper call to compare input and output.symfony/serializer with custom normalizers or a maintained mapper. If you must keep this bundle, isolate it behind your own DataMapperInterface so you can swap implementations later.How can I help you explore Laravel packages today?