PHPackages                             kjohnson/format-object-list - 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. kjohnson/format-object-list

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

kjohnson/format-object-list
===========================

Formats an associative array into a JS parsable array of objects.

0.1.0(5y ago)0243.6k↑760%GPL-2.0-or-laterPHP

Since Jan 18Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kjohnson/format-object-list)[ Packagist](https://packagist.org/packages/kjohnson/format-object-list)[ RSS](/packages/kjohnson-format-object-list/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Format Object List
==================

[](#format-object-list)

Formats an associative array into a JS parsable array of label/value objects.

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

[](#installation)

`composer require kjohnson/format-object-list`

Usage
-----

[](#usage)

```
$data = [ 'foo' => 'bar' ];
$formatter = FormatObjectList\Factory::fromKeyValue( $data );
$list = $formatter->format();
// [ [ 'label' => 'bar', 'value' => 'foo' ] ]
```

```
$data = [ 'foo' => 'bar' ];
$formatter = FormatObjectList\Factory::fromValueKey( $data );
$list = $formatter->format();
// [ [ 'label' => 'foo', 'value' => 'bar' ] ]
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

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

1992d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/18a9e97baf7d42ec4eebeb45c9e4c5fbf094e911e16f26e36545fbd02a8af5ca?d=identicon)[kjohnson](/maintainers/kjohnson)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kjohnson-format-object-list/health.svg)

```
[![Health](https://phpackages.com/badges/kjohnson-format-object-list/health.svg)](https://phpackages.com/packages/kjohnson-format-object-list)
```

###  Alternatives

[coyl/git

PHP library for manipulations on git repository. Based on kbjr/Git.php and it's forks

11212.2k4](/packages/coyl-git)[axllent/silverstripe-email-obfuscator

Email obfuscator for SilverStripe

10109.1k5](/packages/axllent-silverstripe-email-obfuscator)

PHPackages © 2026

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