doctrine/skeleton-mapper
Doctrine Skeleton Mapper is a lightweight mapping library for Doctrine entities, helping convert entity data into simple skeleton objects or arrays for APIs, read models, and presentation layers while keeping persistence concerns separate.
SELECT NEW) already cover 90% of the need.Consider it when:
Look elsewhere when:
spatie/laravel-data covers the same ground with first-class support and community.To executives: This is a narrow technical experiment, not a platform commitment. The package is archived and lightly adopted, so the recommendation is to spend a short spike proving whether typed read models measurably improve our slowest read endpoints — then either implement the pattern in-house or fork it. We should not put an unmaintained dependency on the production critical path without an explicit ownership plan. Downside is bounded and reversible; upside is simpler, faster read code.
To engineering: It is a focused data mapper for DBAL result sets into typed objects, with code generation replacing reflection-based hydration. It solves a real problem — typed reads without ORM overhead — and is worth benchmarking against Doctrine ORM DTO hydration and Eloquent resources on one representative endpoint. Costs are the codegen step in the build, custom wiring (there is no Laravel service provider), and permanent ownership if adopted. Treat it as a design reference first, a dependency second.
How can I help you explore Laravel packages today?