PHPackages                             punarinta/apath - 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. punarinta/apath

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

punarinta/apath
===============

A way to access data for multidimensional PHP arrays and objects.

v1.0(9y ago)012MITPHPPHP &gt;=5.4.0

Since Feb 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/punarinta/apath)[ Packagist](https://packagist.org/packages/punarinta/apath)[ RSS](/packages/punarinta-apath/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

APath
=====

[](#apath)

A way to access data in objects and multidimensional arrays.

Usage
=====

[](#usage)

```
use APath\APath;

$sample =
[
    'foo' =>
    [
        'bar' =>
        [
            'x1' => 'hello, world',
            'x2',
            'x3' => 'bye-bye, world',
        ],
    ],
    'some' =>
    [
        'data',
        'x1337' => 'LEET',
    ],
    [1, 4, 'xxx' => 'yyy', 88],
];

// get the whole structure
print_r(APath::get($sample));

// get by keys
print_r(APath::get($sample, 'foo.bar'));

// or by numeric offset
print_r(APath::get($sample, '0.2'));

// or even combine them
print_r(APath::get($sample, 'some.0'));

// trying to get a non-existent part will simply result a null
print_r(APath::get($sample, 'some.unreal.path'));
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3428d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/754c799a3ccee283cb079e7753a87e1f876ffb97d846bb1664793681fb635d9f?d=identicon)[punarinta](/maintainers/punarinta)

---

Top Contributors

[![punarinta](https://avatars.githubusercontent.com/u/2189981?v=4)](https://github.com/punarinta "punarinta (2 commits)")

---

Tags

arrayaccess

### Embed Badge

![Health badge](/badges/punarinta-apath/health.svg)

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

###  Alternatives

[symfony/property-access

Provides functions to read and write from/to an object or array using a simple string notation

2.8k309.5M3.0k](/packages/symfony-property-access)[doctrine/collections

PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.

6.0k423.8M1.4k](/packages/doctrine-collections)[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.1k417.9M1.7k](/packages/nette-utils)[dflydev/dot-access-data

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

722381.6M104](/packages/dflydev-dot-access-data)[league/config

Define configuration arrays with strict schemas and access values with dot notation

565323.7M35](/packages/league-config)[cuyz/valinor

Dependency free PHP library that helps to map any input into a strongly-typed structure.

1.5k11.7M157](/packages/cuyz-valinor)

PHPackages © 2026

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