cmath10/mapper
A lightweight Laravel/PHP mapping utility to transform data between arrays and objects using configurable field mappings. Helps normalize payloads, rename keys, cast values, and build DTO-style structures with minimal boilerplate.
Adopt if:
array_map, foreach loops, or str_replace chains for data transformations.Look elsewhere if:
For Executives: *"This package lets us build data pipelines 3x faster by turning manual, error-prone mapping code into reusable, configurable rules. For example, instead of spending weeks writing scripts to sync customer data between our CRM and ERP, we’d define the mapping once in a clean config file. This directly impacts:
For Engineering: *"Mapper solves the ‘spaghetti mapping’ problem in Laravel apps. Key wins:
if-else blocks with declarative rules (e.g., ['user.address' => 'client.billing_address']).new FuzzyDateMapper()).
Use case: If you’re tired of debugging array_walk hell in your data import scripts, this lets you focus on business logic instead. Start with a single high-impact use case (e.g., a customer export tool) to validate ROI."*How can I help you explore Laravel packages today?