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(6mo ago)037MITPHPPHP ^8.1CI passing

Since Oct 17Pushed 6mo 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 1mo 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

34

—

LowBetter than 77% of packages

Maintenance66

Regular maintenance activity

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

206d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b674a9a24b0d42fb8fca4abdd50b03672856eaf45af86ff22fec894707c977a8?d=identicon)[Sinmi](/maintainers/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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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