PHPackages                             jongpak/array-key-glue - 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. jongpak/array-key-glue

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

jongpak/array-key-glue
======================

Implode keys of array recursively

1355↓88.9%PHP

Since Sep 11Pushed 9y ago1 watchersCompare

[ Source](https://github.com/jongpak/array-key-glue)[ Packagist](https://packagist.org/packages/jongpak/array-key-glue)[ RSS](/packages/jongpak-array-key-glue/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

jongpak/array-key-glue
======================

[](#jongpakarray-key-glue)

Implode keys of array recursively

[![Build Status](https://camo.githubusercontent.com/a59e7bc1ff9b76a688f958385a717178104ac6e9ec8324fe53cb30773bbc31e0/68747470733a2f2f7472617669732d63692e6f72672f6a6f6e6770616b2f61727261792d6b65792d676c75652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jongpak/array-key-glue)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/dac79ba779c8a2de9d99c2a9399c2e40d5f317eeb07698b66c191655bac54e4a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6a6f6e6770616b2f61727261792d6b65792d676c75652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/jongpak/array-key-glue/?branch=master)[![codecov](https://camo.githubusercontent.com/1839baa9673e7f4ed81748f4eb0d7d2f9a6dc65bb0347ae55ae5f62a51021204/68747470733a2f2f636f6465636f762e696f2f67682f6a6f6e6770616b2f61727261792d6b65792d676c75652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/jongpak/array-key-glue)

Simple usage
------------

[](#simple-usage)

```
use Prob\ArrayUtil\KeyGlue;

$array = [
    'A' => [
        'B' => 'Value1',
        'C' => 'Value2',
        'D' => [
            'E' => 'Value3',
            'F' => 'Value4'
        ]
    ],
    'G' => [
        'H',
        'I',
        'J'
    ]
];

$glue = new KeyGlue();
$glue->setArray($array);
```

```
$glue->setGlueCharacter('.');   // glue '.'
$glue->glueOnlyKey();
/*
 * Array
 * (
 *     [0] => A.B
 *     [1] => A.C
 *     [2] => A.D.E
 *     [3] => A.D.F
 *     [4] => G
 * )
 */
```

```
$glue->setGlueCharacter('.');   // glue '.'
$glue->glueKeyAndContainValue();
/*
 * Array
 * (
 *     [A.B]    => 'Value1'
 *     [A.C]    => 'Value2'
 *     [A.D.E]  => 'Value3'
 *     [A.D.F]  => 'Value4'
 *     [G]      => ['H', 'I', 'J']
 * )
 */
```

```
$glue->setGlueCharacter(' -> ');    // glue ' -> '
$glue->glueOnlyKey();
/*
 * Array
 * (
 *     [0] => A -> B
 *     [1] => A -> C
 *     [2] => A -> D -> E
 *     [3] => A -> D -> F
 *     [4] => G
 * )
 */
```

```
$glue->setGlueCharacter(' -> ');    // glue ' -> '
$glue->glueKeyAndContainValue();
/*
 * Array
 * (
 *     [A -> B]         => 'Value1'
 *     [A -> C]         => 'Value2'
 *     [A -> D -> E]    => 'Value3'
 *     [A -> D -> F]    => 'Value4'
 *     [G]              => ['H', 'I', 'J']
 * )
 */
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/15353893?v=4)[Park Jong-Hun (jongpak)](/maintainers/jongpak)[@jongpak](https://github.com/jongpak)

---

Top Contributors

[![jongpak](https://avatars.githubusercontent.com/u/15353893?v=4)](https://github.com/jongpak "jongpak (12 commits)")

### Embed Badge

![Health badge](/badges/jongpak-array-key-glue/health.svg)

```
[![Health](https://phpackages.com/badges/jongpak-array-key-glue/health.svg)](https://phpackages.com/packages/jongpak-array-key-glue)
```

###  Alternatives

[snscripts/itc-reporter

PHP package for downloading stats from iTunes Connect - Replacement for Apples Java based Reporter.jar

2242.0k](/packages/snscripts-itc-reporter)

PHPackages © 2026

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