PHPackages                             mvaliolahi/request-hydrator - 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. mvaliolahi/request-hydrator

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

mvaliolahi/request-hydrator
===========================

Laravel Request Hydrator Package.

v1.0.4(3y ago)5553[3 PRs](https://github.com/mvaliolahi/request-hydrator/pulls)MITPHP

Since Jul 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/mvaliolahi/request-hydrator)[ Packagist](https://packagist.org/packages/mvaliolahi/request-hydrator)[ RSS](/packages/mvaliolahi-request-hydrator/feed)WikiDiscussions master Synced 4d ago

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

Laravel Request Hydrator
========================

[](#laravel-request-hydrator)

Introduction
------------

[](#introduction)

This package add `castTo` and `HydrateTo` methods to the request object for facilitate filling Data Transfer Objects.

Install
-------

[](#install)

```
composer require mvaliolahi/request-hydrator
```

How to use
----------

[](#how-to-use)

```
$postDTOOne = request()->castTo(PostDTO::class);

$postDTOTwo = request()->hydrateTo(PostDTO::class);
```

Overwrite properties
--------------------

[](#overwrite-properties)

```
$postDTO = request()->castTo(PostDTO::class, [
    'title' => ucfirst(request()->title)
]);
```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

5

Last Release

1172d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d8a3eaee2623560bfdc9906358e1805abd4adf9fcd9170eba274fcfd8a51443?d=identicon)[mvaliolahi](/maintainers/mvaliolahi)

---

Top Contributors

[![mvaliolahi](https://avatars.githubusercontent.com/u/6920600?v=4)](https://github.com/mvaliolahi "mvaliolahi (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mvaliolahi-request-hydrator/health.svg)

```
[![Health](https://phpackages.com/badges/mvaliolahi-request-hydrator/health.svg)](https://phpackages.com/packages/mvaliolahi-request-hydrator)
```

###  Alternatives

[comocode/laravel-ab

Blade level AB tests for Laravel 5

3339.4k](/packages/comocode-laravel-ab)

PHPackages © 2026

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