PHPackages                             sinmiloluwa/laravel-dto-mapper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. sinmiloluwa/laravel-dto-mapper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sinmiloluwa/laravel-dto-mapper
==============================

Elegant, type-safe DTO mapping for Laravel models and arrays.

v1.0.3(10mo ago)037MITPHPPHP ^8.1CI passing

Since Oct 17Pushed 10mo agoCompare

[ Source](https://github.com/Sinmiloluwa/laravel-dto-mapper)[ Packagist](https://packagist.org/packages/sinmiloluwa/laravel-dto-mapper)[ RSS](/packages/sinmiloluwa-laravel-dto-mapper/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Laravel DTO Mapper
==================

[](#laravel-dto-mapper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/df38068f809311ff7acfdb1df5db6e50f3de459d7fb146001f4dbe5df584ff61/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696e6d696c6f6c7577612f6c61726176656c2d64746f2d6d61707065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sinmiloluwa/laravel-dto-mapper)[![Total Downloads](https://camo.githubusercontent.com/6b503da12025f07141816b0577e85ca0b73a9088b704c6a3875f91e75a7975d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696e6d696c6f6c7577612f6c61726176656c2d64746f2d6d61707065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sinmiloluwa/laravel-dto-mapper)[![Tests](https://github.com/sinmiloluwa/laravel-dto-mapper/actions/workflows/run-tests.yml/badge.svg)](https://github.com/sinmiloluwa/laravel-dto-mapper/actions)

> 🧩 Elegant, type-safe DTO mapping for Laravel models and arrays.

---

### 🚀 Features

[](#-features)

- ✅ Map Eloquent models or arrays to typed DTOs
- 🎯 Supports PHP 8+ attributes (`#[MapFrom]`, `#[Cast]`)
- 🧠 Automatic type casting (`int`, `bool`, `float`, `string`)
- ⚡ Zero configuration – drop it in and use
- 🧩 Extensible for nested DTOs and validation

---

📦 Installation
--------------

[](#-installation)

```
composer require sinmiloluwa/laravel-dto-mapper
```

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance54

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

305d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7665034?v=4)[Sinmi](/maintainers/Sinmi)[@sinmi](https://github.com/sinmi)

---

Top Contributors

[![Sinmiloluwa](https://avatars.githubusercontent.com/u/66244767?v=4)](https://github.com/Sinmiloluwa "Sinmiloluwa (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sinmiloluwa-laravel-dto-mapper/health.svg)

```
[![Health](https://phpackages.com/badges/sinmiloluwa-laravel-dto-mapper/health.svg)](https://phpackages.com/packages/sinmiloluwa-laravel-dto-mapper)
```

###  Alternatives

[illuminate/pagination

The Illuminate Pagination package.

12234.6M1.1k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9350.2M312](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.8M410](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.7M146](/packages/illuminate-cookie)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
