PHPackages                             arimac/laravel-request-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. arimac/laravel-request-mapper

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

arimac/laravel-request-mapper
=============================

1.1.1(4y ago)0522MITPHP

Since Dec 16Pushed 4y agoCompare

[ Source](https://github.com/arimacdev/laravel-request-mapper)[ Packagist](https://packagist.org/packages/arimac/laravel-request-mapper)[ RSS](/packages/arimac-laravel-request-mapper/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (9)Versions (11)Used By (0)

Request Mapper for Laravel
==========================

[](#request-mapper-for-laravel)

[![Build Status](https://camo.githubusercontent.com/67c7ae9b831f6e528b45aa0517838fa47e88334fb121266deee46363e0df9077/68747470733a2f2f7472617669732d63692e6f72672f54426c696e646172756b2f6c61726176656c2d726571756573742d6d61707065722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/TBlindaruk/laravel-request-mapper)[![Code Coverage](https://camo.githubusercontent.com/51fb843735551b3d4929225f7988400a6983647e4762d628f279d6ad76d93e81/68747470733a2f2f636f6465636f762e696f2f67682f54426c696e646172756b2f6c61726176656c2d726571756573742d6d61707065722f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/TBlindaruk/laravel-request-mapper/branch/master)[![Latest Stable Version](https://camo.githubusercontent.com/a0fd01d840e59940aa50f12ffc76706c4d898afa214a2dc2cf1c710a4ef02d3d/68747470733a2f2f706f7365722e707567782e6f72672f6d616b73692f6c61726176656c2d726571756573742d6d61707065722f762f737461626c652e737667)](https://packagist.org/packages/maksi/laravel-request-mapper)[![License](https://camo.githubusercontent.com/799f1169f2f55832f04106daf95513f2e4697c969f52cb38853f870dcaa863b4/68747470733a2f2f706f7365722e707567782e6f72672f6d616b73692f6c61726176656c2d726571756573742d6d61707065722f6c6963656e73652e737667)](https://packagist.org/packages/maksi/laravel-request-mapper)

This component allow you to inject DTO object mapped from the Request to the action.

1. [Install](#install)
2. [Requirements](#requirements)
3. [Basic usage](#basic)
4. [Nested object](#nested)
5. [Mapped strategies](#mapped-strategies)
6. [Create custom mapped strategy](#custom-mapped-strategy)
7. [How to create an custom exception?](#change-exception)
8. [Project example](#example)
9. [Contributing](#contributing)
10. [Licence](#licence)
11. [TODO](#todo)

1. Install
-----------

[](#1-install-)

You can install this package via composer using this command:

```
composer require maksi/laravel-request-mapper

```

The package will automatically register itself.

2. Requirements
----------------

[](#2-requirements-)

PHP 7.1 or newer and Laravel 5.5 or newer

3. Basic usage
---------------

[](#3-basic-usage-)

**3.1 Create an DTO object**

```
