PHPackages                             peehaa/array-path - 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. peehaa/array-path

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

peehaa/array-path
=================

v1.0.0(8y ago)354331MITPHPPHP ^7.1

Since Oct 31Pushed 7y ago1 watchersCompare

[ Source](https://github.com/PeeHaa/array-path)[ Packagist](https://packagist.org/packages/peehaa/array-path)[ RSS](/packages/peehaa-array-path/feed)WikiDiscussions master Synced 2mo ago

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

array-path
==========

[](#array-path)

[![Code Coverage](https://camo.githubusercontent.com/8e170865fdda83a79fb990ab3d9e47a9aa0b5358127db64cfd8b74650f0c703f/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5065654861612f61727261792d706174682f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PeeHaa/array-path/?branch=master)[![Build Status](https://camo.githubusercontent.com/f83046c0dc9c751e73f7bbe730f62bc5898c1320783046a367614b2485dddfad/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5065654861612f61727261792d706174682f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PeeHaa/array-path/build-status/master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/93b2c95a8c022baacc8db90b915851be3fd6fbec8aee8f3ffcca4e9c8042ec51/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f5065654861612f61727261792d706174682f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/PeeHaa/array-path/?branch=master)

Yet another array path implementation

Requirements
------------

[](#requirements)

- PHP 7.1+

Usage
-----

[](#usage)

### `get()`

[](#get)

```
echo (new \PeeHaa\ArrayPath\ArrayPath())->get(['foo' => ['bar' => 'baz']], 'foo.bar'); // baz

echo (new \PeeHaa\ArrayPath\ArrayPath())->get(['foo' => ['bar' => 'baz']], 'foo.qux'); // throws \PeeHaa\ArrayPath\NotFoundException
```

### `exists()`

[](#exists)

```
echo (new \PeeHaa\ArrayPath\ArrayPath())->exists(['foo' => ['bar' => 'baz']], 'foo.bar'); // true

echo (new \PeeHaa\ArrayPath\ArrayPath())->exists(['foo' => ['bar' => 'baz']], 'foo.qux'); // false
```

### `set()`

[](#set)

```
$array = [];

(new \PeeHaa\ArrayPath\ArrayPath())->set($array, 'foo.bar', 'value');

var_dump($array);
```

```
/**
array(1) {
  ["foo"]=>
  array(1) {
    ["bar"]=>
    string(5) "value"
  }
}
*/

```

### `remove()`

[](#remove)

```
    $array = ['foo' => ['bar' => 'value']];

    (new \PeeHaa\ArrayPath\ArrayPath())->remove($array, 'foo.bar');

    var_dump($array);
```

```
/**
array(1) {
  ["foo"]=>
  array(0) {
  }
}
*/

```

*Note: `remove()` will not throw when the key does not exist in the array.*

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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

Unknown

Total

1

Last Release

3118d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ce6ea4ee501375bd1be563f6deed94e889d57d6134e98486208e5bcd14026ec2?d=identicon)[PeeHaa](/maintainers/PeeHaa)

---

Top Contributors

[![PeeHaa](https://avatars.githubusercontent.com/u/1330296?v=4)](https://github.com/PeeHaa "PeeHaa (11 commits)")[![DaveRandom](https://avatars.githubusercontent.com/u/2396425?v=4)](https://github.com/DaveRandom "DaveRandom (1 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

---

Tags

arrayutilitypath

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/peehaa-array-path/health.svg)

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

###  Alternatives

[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k394.3M1.5k](/packages/nette-utils)[voku/arrayy

Array manipulation library for PHP, called Arrayy!

4875.5M16](/packages/voku-arrayy)[bocharsky-bw/arrayzy

A native PHP arrays easy manipulation library in OOP way.

38425.4k](/packages/bocharsky-bw-arrayzy)[brunoconte3/dev-utils

A complete PHP utility library for validating, formatting, comparing data, and more.

3525.7k](/packages/brunoconte3-dev-utils)

PHPackages © 2026

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