PHPackages                             nathggns/key\_implode - 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. nathggns/key\_implode

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

nathggns/key\_implode
=====================

Implode PHP array by both key and value

1.1.0(12y ago)11.1kMITPHP

Since Nov 27Pushed 12y ago1 watchersCompare

[ Source](https://github.com/nathggns/key_implode)[ Packagist](https://packagist.org/packages/nathggns/key_implode)[ Docs](https://github.com/nathggns/key-implode)[ RSS](/packages/nathggns-key-implode/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (4)Used By (0)

key-implode
===========

[](#key-implode)

Implode PHP array by both key and value

Usage
-----

[](#usage)

```
string key_implode(string $pair_glue, string $glue, array $arr)
```

Given an associative array, `key_implode()` returns a string where both the keys and the values have been imploded by a specified glue.

```
key_implode(':', '/', [
    'page' => 2,
    'letter' => 'A'
]);

// page:2/letter:A
```

Installation
------------

[](#installation)

The easiest way to install this library is to use Composer and add the following to your project's `composer.json`.

```
{
    "require": {
        "nathggns/key_implode": "1.1.*"
    }
}
```

Then, when you run `composer install`, Composer should add this function to your project.

You do not need Composer to use this project, though. The alternative is to simply take the file `src/key_implode.php` and add it to your project.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~0 days

Total

3

Last Release

4599d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/719814?v=4)[Nate Higgins](/maintainers/nathggns)[@nathggns](https://github.com/nathggns)

---

Top Contributors

[![nathggns](https://avatars.githubusercontent.com/u/719814?v=4)](https://github.com/nathggns "nathggns (1 commits)")

---

Tags

arraykeyassocimplodekey\_implode

### Embed Badge

![Health badge](/badges/nathggns-key-implode/health.svg)

```
[![Health](https://phpackages.com/badges/nathggns-key-implode/health.svg)](https://phpackages.com/packages/nathggns-key-implode)
```

###  Alternatives

[doctrine/collections

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

6.0k423.8M1.4k](/packages/doctrine-collections)[symfony/property-access

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

2.8k309.5M3.1k](/packages/symfony-property-access)[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)[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.5k13.2M162](/packages/cuyz-valinor)[openlss/lib-array2xml

Array2XML conversion library credit to lalit.org

31053.8M50](/packages/openlss-lib-array2xml)

PHPackages © 2026

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