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

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

matrix2305/laravel-request-object-mapper
========================================

Mapper to object from laravel request (associative array)

16.8kPHP

Since Jun 5Pushed 1y ago1 watchersCompare

[ Source](https://github.com/matrix2305/laravel-request-object-mapper)[ Packagist](https://packagist.org/packages/matrix2305/laravel-request-object-mapper)[ RSS](/packages/matrix2305-laravel-request-object-mapper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

IMPLEMENTATION
--------------

[](#implementation)

***Important: All properties for map must be public***

Extends request class with BaseRequestObjectMapper

`class CreateBannerRequest extends BaseRequestObjectMapper`

Map child object in array

```
#[ArrayChildObjectMap(objectClass: ChildRequestClass::class)]
public array $items;

```

Map numeric array

```
#[ArrayChildTypeMap(type: ArrayChildType::FLOAT)]
public array $itemsInArray;

```

### Laravel Object Validator

[](#laravel-object-validator)

If you do before steps you can validate your properties in class by PropertyValidationRules attribute

```
#[PropertyValidationRules(rules: 'required|integer', messages: ['required' => 'Id is required field.'])]
public int $id;

#[PropertyValidationRules(rules: 'required|string|max:255', messages: ['required' => 'Name is required field.', 'max' => 'Name can contains maximum 255 characters.'])]
public string $name;

```

If validation not successfully BaseRequestObjectMapper throws FailedValidationException

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/10d069e47ef621e2f7348facfc7e181925b2d0906a554dd6f4caa69ecdb8e0a8?d=identicon)[matrix2305](/maintainers/matrix2305)

---

Top Contributors

[![matrix2305](https://avatars.githubusercontent.com/u/62420807?v=4)](https://github.com/matrix2305 "matrix2305 (34 commits)")

### Embed Badge

![Health badge](/badges/matrix2305-laravel-request-object-mapper/health.svg)

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

###  Alternatives

[robicch/jquery-gantt

Twproject Gantt editor is a free online tool for creating and sharing Gantts

2.3k157.7k](/packages/robicch-jquery-gantt)[brickrouge/brickrouge

A toolkit to create HTML elements

301.8k6](/packages/brickrouge-brickrouge)

PHPackages © 2026

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