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

Maintenance26

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

[bertptrs/phpstreams

A streams library for PHP based on the Java 8 Streams API.

883.2k](/packages/bertptrs-phpstreams)[cheprasov/php-parallel

The class allows you to run multiple operations parallel in different processes and send results to the main process. Useful if you need to run multiple independent operations simultaneously, instead of sequential execution, or if you run several independent queries, for example, queries to different data bases

1712.5k5](/packages/cheprasov-php-parallel)

PHPackages © 2026

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