PHPackages                             jord-jd/array\_undot - 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. jord-jd/array\_undot

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

jord-jd/array\_undot
====================

array\_undot (the opposite of the array\_dot helper function) expands a dot notation array into a full multi-dimensional array.

v6.0.0(3mo ago)242302[1 issues](https://github.com/Jord-JD/array_undot/issues)[1 PRs](https://github.com/Jord-JD/array_undot/pulls)2LGPL-3.0-onlyPHP

Since Jan 12Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/Jord-JD/array_undot)[ Packagist](https://packagist.org/packages/jord-jd/array_undot)[ GitHub Sponsors](https://github.com/DivineOmega)[ RSS](/packages/jord-jd-array-undot/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (9)Used By (2)

array\_undot
============

[](#array_undot)

[![Build Status](https://camo.githubusercontent.com/328efaeb12fa52db1d3f8118a645cdbd5e53d6c8e564e28c878f2b9fd156a430/68747470733a2f2f7472617669732d63692e6f72672f4a6f72642d4a442f61727261795f756e646f742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Jord-JD/array_undot)[![Coverage Status](https://camo.githubusercontent.com/fb05f756143707ecf878dfefe87872af750e396745a3b9e35521c699bac22d0b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a6f72642d4a442f61727261795f756e646f742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Jord-JD/array_undot?branch=master)[![StyleCI](https://camo.githubusercontent.com/7fa572302bc0a84f28823d3fe730632fcda0f1a6da76bc278dd49c4bb4d01306/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133303336343831302f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/130364810)[![Packagist](https://camo.githubusercontent.com/32aca2167294ef9ea8d933b05074539797a019383c2c13b7a6a89b3217887160/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f72642d6a642f61727261795f756e646f742e737667)](https://camo.githubusercontent.com/32aca2167294ef9ea8d933b05074539797a019383c2c13b7a6a89b3217887160/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f72642d6a642f61727261795f756e646f742e737667)

This package provides a helper function called `array_undot`, which expands a dot notation array into a full multi-dimensional array. It is, therefore, the opposite of the `array_dot` helper function provided by Laravel.

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

[](#installation)

To install, just run the following composer command.

```
composer require jord-jd/array_undot

```

The `array_undot` helper function will then be available globally in your project.

Usage
=====

[](#usage)

The following basic examples show how to use the `array_undot` helper function.

```
$dotNotationArray = ['products.desk.price' => 100];

$expanded = array_undot($dotNotationArray)

// ['products' => ['desk' => ['price' => 100]]];
```

```
$dotNotationArray = ['products.desk.price' => 100,
                     'products.desk.name' => 'Oak Desk',
                     'products.lamp.price' => 15,
                     'products.lamp.name' => 'Red Lamp'];

$expanded = array_undot($dotNotationArray)

/*
[
    'products' => [
        'desk' => [
            'price' => 100,
            'name' => 'Oak Desk'
        ],
        'lamp' => [
            'price' => 15,
            'name' => 'Red Lamp'
        ]
    ]
]
*/
```

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance82

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 68.4% 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 ~422 days

Recently: every ~624 days

Total

8

Last Release

93d ago

Major Versions

v1.0.1 → v2.0.02018-04-20

v2.0.0 → v3.0.02019-04-16

v3.0.0 → v4.0.02019-04-23

v4.1.0 → v5.0.02026-02-14

v5.0.0 → v6.0.02026-02-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (13 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (6 commits)")

---

Tags

arrayarray-dotarray-undotdot-notation-arraylaravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jord-jd-array-undot/health.svg)

```
[![Health](https://phpackages.com/badges/jord-jd-array-undot/health.svg)](https://phpackages.com/packages/jord-jd-array-undot)
```

###  Alternatives

[phpu/calendar

中国日历，通过天文计算和民间推算方法，准确计算出公历-1000年至3000年的农历、干支、节气等，同时支持多配置、多语言、多时区。

201.7k](/packages/phpu-calendar)

PHPackages © 2026

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