PHPackages                             viloveul/mutator - 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. viloveul/mutator

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

viloveul/mutator
================

Object Mutator of Viloveul

v1.0.1(6y ago)016MITPHPPHP ~7.0

Since Jun 18Pushed 6y ago1 watchersCompare

[ Source](https://github.com/viloveul/mutator)[ Packagist](https://packagist.org/packages/viloveul/mutator)[ Docs](http://www.viloveul.com)[ RSS](/packages/viloveul-mutator/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (1)Versions (4)Used By (0)

[![Build Status](https://camo.githubusercontent.com/9fd820739e15ab616eb84a09e5190e0d76ec9e95f3fa1286e80e469be7fa9369/68747470733a2f2f7472617669732d63692e636f6d2f76696c6f7665756c2f6d757461746f722e737667)](https://travis-ci.com/viloveul/mutator)[![Total Downloads](https://camo.githubusercontent.com/56539e3462f5a33b35067bb0c24147526bb1532658062ceab10bfe2eb8af1b33/68747470733a2f2f706f7365722e707567782e6f72672f76696c6f7665756c2f6d757461746f722f642f746f74616c2e737667)](https://packagist.org/packages/viloveul/mutator)[![Latest Stable Version](https://camo.githubusercontent.com/16295af9b86cbbad978200ee36fc27d62657efd9c3749251187fb1ea3313651c/68747470733a2f2f706f7365722e707567782e6f72672f76696c6f7665756c2f6d757461746f722f762f737461626c652e737667)](https://packagist.org/packages/viloveul/mutator)

Installation
============

[](#installation)

make sure your php version &gt; 7.0

```
composer require viloveul/mutator
```

How
---

[](#how)

```
require __DIR__ . '/vendor/autoload.php';

$context = new Viloveul\Mutator\Context();
$context->addHandler('test', function(Viloveul\Mutator\Contracts\Payload $payload) {
	$payload->foo = "baz";
	return $payload;
});

$payload = new Viloveul\Mutator\Payload([
	'foo' => 'bar'
]);
$result = $context->apply('test', $payload);
var_dump($result);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

3

Last Release

2521d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/609a03f1a38d80aa5cf333dd556cb748371dbcbc880f3c580ecea72ff0fb228b?d=identicon)[zafex](/maintainers/zafex)

---

Top Contributors

[![zafex](https://avatars.githubusercontent.com/u/12587685?v=4)](https://github.com/zafex "zafex (3 commits)")

---

Tags

mutatorobject-mutatorviloveulviloveul-componentlibrarycomponentmutatorzafexviloveulfajrulaz

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/viloveul-mutator/health.svg)

```
[![Health](https://phpackages.com/badges/viloveul-mutator/health.svg)](https://phpackages.com/packages/viloveul-mutator)
```

PHPackages © 2026

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