PHPackages                             kozz/array-updater - 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. kozz/array-updater

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

kozz/array-updater
==================

Library allows easily update multidimensional arrays

1.2.1(11y ago)15.1kMITPHPPHP &gt;=5.4.0

Since Aug 26Pushed 11y ago2 watchersCompare

[ Source](https://github.com/urakozz/php-array-updater)[ Packagist](https://packagist.org/packages/kozz/array-updater)[ Docs](http://github.com/urakozz/php-array-updater)[ RSS](/packages/kozz-array-updater/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (4)Dependencies (3)Versions (7)Used By (0)

PHP Array Updater
=================

[](#php-array-updater)

[![Build Status](https://camo.githubusercontent.com/66e811a235ff5cf3e0e98f86ef676b110fcf9e84f7d01821129c3809aa506899/68747470733a2f2f7472617669732d63692e6f72672f7572616b6f7a7a2f7068702d61727261792d757064617465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/urakozz/php-array-updater)[![Coverage Status](https://camo.githubusercontent.com/711ff0aec66167f530d1705fc08951e0393ac9b491cf365a2a4b46a6387f4f91/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f7572616b6f7a7a2f7068702d61727261792d757064617465722e737667)](https://coveralls.io/r/urakozz/php-array-updater?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/aae923293fd295c27fd7661f97665597ab47256cc19252240ff15bdc268b9912/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7572616b6f7a7a2f7068702d61727261792d757064617465722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/urakozz/php-array-updater/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/1a2c01e0e53bc70887533044f6b1fb37c474ecc3ebfd53291f45fddf0a72c4a6/68747470733a2f2f706f7365722e707567782e6f72672f6b6f7a7a2f61727261792d757064617465722f762f737461626c652e737667)](https://packagist.org/packages/kozz/array-updater)[![Latest Unstable Version](https://camo.githubusercontent.com/187666e7def1a0e3c23185798874bb86a5ec101b2c3fbe0453b2efd441d3d480/68747470733a2f2f706f7365722e707567782e6f72672f6b6f7a7a2f61727261792d757064617465722f762f756e737461626c652e737667)](https://packagist.org/packages/kozz/array-updater)[![License](https://camo.githubusercontent.com/1e2c7713930bc67ae0c2d7d885f3d45d0be2f8201baebd5ee736ca7a039cafad/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b6f7a7a2f61727261792d757064617465722e737667)](https://packagist.org/packages/kozz/array-updater)

Recursive Array Updater
-----------------------

[](#recursive-array-updater)

#### Update One

[](#update-one)

```
  $source = ['this' => ['is' => ['the' => ['path' => [
    1,2,3,4,5
  ]]]]];

  $array =
    ArrayUpdater::from($source)
    ->node('this')->node('is')->node('the')->node('path')->all()
    ->replace(1, 100);

  /**
   * $array = ['this' => ['is' => ['the' => ['path' => [
   *   100,2,3,4,5
   * ]]]]];
   */

```

#### Update Multiple

[](#update-multiple)

```
  $source = ['this' => [
    ['the' => ['path' => [
      1,2,3,4,5
    ]]],
    ['the' => ['path' => [
      1,2,3,4,5
    ]]]
  ]];

  $array =
    ArrayUpdater::from($array)
    ->node('this')->all()->node('the')->node('path')->all()
    ->replaceAssoc([1=>100, 3=>300]);

  /**
   *
   * $array = ['this' => [
   *  ['the' => ['path' => [
   *    100,2,300,4,5
   *  ]]],
   *  ['the' => ['path' => [
   *    100,2,300,4,5
   *  ]]]
   * ]];
   */
   *
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

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

Recently: every ~35 days

Total

6

Last Release

4178d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8f78e5a1e5128b31ba7dfedcc9a3ccfbc4852f5df1b79a54867aa377169968a1?d=identicon)[urakozz](/maintainers/urakozz)

---

Top Contributors

[![urakozz](https://avatars.githubusercontent.com/u/5797393?v=4)](https://github.com/urakozz "urakozz (16 commits)")

---

Tags

datamerge

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kozz-array-updater/health.svg)

```
[![Health](https://phpackages.com/badges/kozz-array-updater/health.svg)](https://phpackages.com/packages/kozz-array-updater)
```

###  Alternatives

[fakerphp/faker

Faker is a PHP library that generates fake data for you.

4.0k379.0M4.3k](/packages/fakerphp-faker)[dflydev/dot-access-data

Given a deep data structure, access data by dot notation.

722381.6M104](/packages/dflydev-dot-access-data)[mbezhanov/faker-provider-collection

A collection of custom providers for the Faker library

2139.1M25](/packages/mbezhanov-faker-provider-collection)[php-units-of-measure/php-units-of-measure

A PHP library for converting between standard units of measure.

3133.7M30](/packages/php-units-of-measure-php-units-of-measure)[gehrisandro/tailwind-merge-laravel

TailwindMerge for Laravel merges multiple Tailwind CSS classes by automatically resolving conflicts between them

341790.3k28](/packages/gehrisandro-tailwind-merge-laravel)[amenadiel/jpgraph

Composer Friendly, full refactor of JpGraph, library to make graphs and charts

1492.3M7](/packages/amenadiel-jpgraph)

PHPackages © 2026

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