PHPackages                             yzen.dev/request-data-adapter - 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. yzen.dev/request-data-adapter

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

yzen.dev/request-data-adapter
=============================

Adapter for converting input data from Illuminate\\Http\\Request

0.0.2(5y ago)22.6k[2 PRs](https://github.com/yzen-dev/request-data-adapter/pulls)MITPHPPHP ^7.0

Since May 24Pushed 3y ago1 watchersCompare

[ Source](https://github.com/yzen-dev/request-data-adapter)[ Packagist](https://packagist.org/packages/yzen.dev/request-data-adapter)[ RSS](/packages/yzendev-request-data-adapter/feed)WikiDiscussions master Synced 6d ago

READMEChangelog (2)Dependencies (2)Versions (5)Used By (0)

RequestDataAdapter - Adapter for converting input data from Illuminate\\Http\\Request
-------------------------------------------------------------------------------------

[](#requestdataadapter---adapter-for-converting-input-data-from-illuminatehttprequest)

[![Packagist Downloads](https://camo.githubusercontent.com/ff1c365064d49a2be0cd1398fb15c1c80025c0ae1f1410892ee6bcab320225ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f797a656e2e6465762f726571756573742d646174612d61646170746572)](https://camo.githubusercontent.com/ff1c365064d49a2be0cd1398fb15c1c80025c0ae1f1410892ee6bcab320225ec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f797a656e2e6465762f726571756573742d646174612d61646170746572)

[![Packagist Downloads](https://camo.githubusercontent.com/8bae5216919ae48d3991b3f2d1302ee13531617abe9a236f72f33601e1a7b9f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f797a656e2e6465762f726571756573742d646174612d61646170746572)](https://camo.githubusercontent.com/8bae5216919ae48d3991b3f2d1302ee13531617abe9a236f72f33601e1a7b9f3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f797a656e2e6465762f726571756573742d646174612d61646170746572)

This package provides easy conversion of input keys to your internal keys.

This adapter is perfect for you if for example you do not want to give your internal keys containing typos (but we know that you can’t have this😉), or vice versa, translate incorrect keys into the correct form.

📜 **Installation**
------------------

[](#scroll-installation)

The package can be installed via composer:

```
composer require yzen.dev/request-data-adapter

```

📜 **Usage**
-----------

[](#scroll-usage)

To use the adapter, you must connect this trait:

```
class CommentStoreRequest extends FormRequest
{
    use RequestDataAdapter;
    ...
}
```

Then you need to implement the **mappingData** method (PHPStorm itself will offer you add method stubs)

```
    /**
     * {@inheritDoc}
     */
    public function mappingData(): array
    {
        return [
            'tatle' => 'title',
            'autor' => 'author',
            'files' => [
                'file' => [
                    'document_name' => 'name'
                ],
            ],
            'additions' => [
                'date' => 'date_time',
            ],
        ];
    }
```

Thus, you can already work in the controller with the data set you need:

```
{
  "title": "Test packages",
  "author": "Taylor",
  "files": [
    {
      "file": {
        "document_name": "my_photo"
      }
    }
  ],
  "additions": {
    "date": "date_time"
  }
}
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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 ~305 days

Total

2

Last Release

1878d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ca07942b4d955ee72b1bc92220b1bc7686708d0f109ee4abf81f8fbd30732c3?d=identicon)[yzen.dev](/maintainers/yzen.dev)

---

Top Contributors

[![yzen-dev](https://avatars.githubusercontent.com/u/24630195?v=4)](https://github.com/yzen-dev "yzen-dev (3 commits)")

---

Tags

requestlaraveltraitadapterilluminate

### Embed Badge

![Health badge](/badges/yzendev-request-data-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/yzendev-request-data-adapter/health.svg)](https://phpackages.com/packages/yzendev-request-data-adapter)
```

###  Alternatives

[livewire/volt

An elegantly crafted functional API for Laravel Livewire.

4195.3M84](/packages/livewire-volt)[iteks/laravel-enum

A comprehensive Laravel package providing enhanced enum functionalities, including attribute handling, select array conversions, and fluent facade interactions for robust enum management in Laravel applications.

2516.7k](/packages/iteks-laravel-enum)[pyaesone17/active-state

Active State Checker For Laravel Url

4761.8k2](/packages/pyaesone17-active-state)

PHPackages © 2026

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