PHPackages                             william-lindner/delimiter\_array\_access - 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. william-lindner/delimiter\_array\_access

ActiveLibrary

william-lindner/delimiter\_array\_access
========================================

An accessor function for arrays that allows you to find nested values by delimited notation.

2.0.0(5y ago)16MITPHPCI failing

Since Apr 9Pushed 5y ago1 watchersCompare

[ Source](https://github.com/william-lindner/delimiter_array_access)[ Packagist](https://packagist.org/packages/william-lindner/delimiter_array_access)[ RSS](/packages/william-lindner-delimiter-array-access/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Delimiter Array Access
======================

[](#delimiter-array-access)

Delimiter array access is a function that allows for the finding of array values by dot notation.

> Sometimes it's just easier to read accessing array chains by a string with a delimiter. Instead of compound, chained accessors that may lead to unexpected errors this function is null safe. This isn't trying to be fast. It's trying to provide developers options in how they want their code read.

### Descripton

[](#descripton)

```
delimiter_array_access( string $needle, array $haystack, [ string $delimiter = '.' ] ) : mixed
```

### Installation

[](#installation)

```
$ composer require william-lindner/delimiter_array_access
```

### Parameters

[](#parameters)

**needle** (*Required*)

The string with delimiter you want parsed to extract the value from the array.

**haystack** (*Required*)

The array being parsed to find the value.

**delimiter** (*Optional*)

The optional delimiter for the string needle, defaulting to a period.

### Example

[](#example)

In the following example the value nested within the array is extracted using the default delimiter of a period.

```
$myArray = [
  'my' => [
    'assoc' => [
      'array' => 'I found a value.'
    ]
  ]
];

// This will output 'I found a value.'
echo delimiter_array_access('my.assoc.array', $myArray) . PHP_EOL;
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

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

1856d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ed492d602b6e9deaa8faa7a5edb5293aa35abc0d7d5edfd273c7b435bec40e6?d=identicon)[william-lindner](/maintainers/william-lindner)

---

Top Contributors

[![william-lindner](https://avatars.githubusercontent.com/u/38209603?v=4)](https://github.com/william-lindner "william-lindner (11 commits)")[![wil100](https://avatars.githubusercontent.com/u/36246979?v=4)](https://github.com/wil100 "wil100 (5 commits)")

---

Tags

phpphp-librarydotdot notationdot-arrayassociative array

### Embed Badge

![Health badge](/badges/william-lindner-delimiter-array-access/health.svg)

```
[![Health](https://phpackages.com/badges/william-lindner-delimiter-array-access/health.svg)](https://phpackages.com/packages/william-lindner-delimiter-array-access)
```

###  Alternatives

[dflydev/dot-access-data

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

718359.1M86](/packages/dflydev-dot-access-data)[league/config

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

564302.2M24](/packages/league-config)[curl/curl

cURL class for PHP

32814.9M193](/packages/curl-curl)[jawira/case-converter

Convert strings between 13 naming conventions: Snake case, Camel case, Pascal case, Kebab case, Ada case, Train case, Cobol case, Macro case, Upper case, Lower case, Sentence case, Title case and Dot notation.

1746.9M79](/packages/jawira-case-converter)[alom/graphviz

Graphviz generation for PHP

74651.4k9](/packages/alom-graphviz)[binary-cube/dot-array

PHP Dot-Array :: Sail through array using the dot notation

10107.7k1](/packages/binary-cube-dot-array)

PHPackages © 2026

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