Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Data Mapper Bundle Laravel Package

troytft/data-mapper-bundle

A Symfony bundle for troytft/data-mapper that simplifies mapping arrays and objects into typed DTOs. Configure your mappings and let the mapper handle conversion, reducing repetitive hydration code across controllers and services.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for the data-mapping layer. The package addresses a common Laravel concern: converting request payloads, domain entities, and API resources into typed DTOs or transfer objects. A PM can use it as a reference point when deciding whether to adopt a package, build a thin internal mapper, or rely on a maintained library.
  • API contract stability and versioning. If a mapping layer is part of the request/response pipeline, its maintenance status directly affects the team’s ability to evolve API contracts safely. This package’s deprecation is a signal to revisit how much of the API surface depends on unmaintained code.
  • Architecture standardization. Teams may evaluate whether a dedicated mapper belongs in the service layer, the controller layer, or a separate mapping package. The package’s existence—and its abandonment—informs the “standardize vs. isolate” decision.
  • Roadmap risk and migration planning. Because the project is explicitly closed and points to a successor, any existing usage creates a roadmap item: migrate, wrap, or remove before the next major Laravel/PHP upgrade.
  • Feature-level use cases. DTO hydration from HTTP requests, entity-to-resource transformation, and decoupling persistence models from API output are legitimate use cases—but they should be evaluated against maintained alternatives, not this package.

When to Consider This Package

Consider it only in narrow legacy contexts:

  • An existing application already depends on it and needs a short-term stabilization plan.
  • A throwaway prototype or internal tool where abandonment risk is acceptable and no production SLA exists.
  • As a reference implementation for mapper API design—not as a production dependency.

Look elsewhere when any of the following are true:

  • Long-term support matters. The package is marked deprecated, the project is closed, the last release was August 2022, and it has no dependents. That is a strong avoid signal for new adoption.
  • Security, PHP/Laravel compatibility, or upgrade cadence matters. An unmaintained mapper will eventually block framework upgrades.
  • You need documentation, community support, or issue triage. Eight stars and zero dependents indicate effectively no ecosystem.
  • You are starting greenfield work. Prefer maintained options such as spatie/laravel-data, Symfony Serializer, or a small internal mapper with tests. The suggested successor, troytft/rest-api-bundle, should itself be evaluated skeptically given the same maintainer and low adoption.
  • You need a clear ownership and support path. A closed project with no maintainer commitment is not a defensible dependency for a product roadmap.

How to Pitch It (Stakeholders)

For executives: This is not a strategic dependency. The package is deprecated, the project is closed, and adoption is negligible—eight stars, zero dependents, and no release since 2022. Adopting it would create a future migration liability for a non-differentiating concern. The recommendation is to avoid new investment and, if it is already in use, budget a small migration to a maintained mapper or an internal utility.

For engineering: Treat this as a reference for mapper ergonomics, not as a library to install. If the team needs a mapping layer, compare maintained alternatives on Laravel version support, release cadence, test coverage, and upgrade path. If legacy code already uses this package, isolate it behind an internal interface so it can be replaced without touching domain or API code. The successor package should be assessed with the same due diligence—low adoption and a young maintenance history are not sufficient evidence of long-term viability.

Bottom line: The opportunity is real—data mapping is a recurring product concern—but this package is not the vehicle. Use its deprecation as a prompt to define a mapping standard, choose a maintained implementation, and avoid letting an abandoned dependency shape the architecture.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin