boshurik/mapper
Lightweight Laravel/PHP object mapper for converting between arrays and DTOs/entities. Helps map input data to typed objects and back with minimal boilerplate, supporting custom mapping rules and nested structures for clean data transformations.
User entities to UserDTO for APIs or vice versa), accelerating feature delivery.spatie/data-transfer-object or mapphp/array-object).fillable + casts).ApiPlatform for DTOs).For Executives:
"This package cuts development time for data transformations—like translating database records into API-friendly formats—by 30–50%. For example, instead of writing 20 lines of manual code to convert a User object to a UserDTO, we’d use a single, reusable mapper. This aligns with our goal to ship features faster while reducing technical debt. The trade-off is minimal: a lightweight, unmaintained library (though we’d monitor forks or alternatives)."
For Engineering:
*"Problem: Mapping objects (e.g., User → UserDTO) is repetitive and error-prone. Solution: boshurik/mapper automates this with configurable rules (e.g., field names, types). Benefits:
spatie/data-transfer-object."*
Ask: "Should we prioritize this for our next API refactor, or explore a more maintained option?"How can I help you explore Laravel packages today?