PHPackages                             mead-steve/json-er - 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. mead-steve/json-er

Abandoned → [mead-steve/json-er](/?search=mead-steve%2Fjson-er)Library[Utility &amp; Helpers](/categories/utility)

mead-steve/json-er
==================

Simple helper class for converting data to json.

1.0.0(13y ago)020MITPHPPHP &gt;=5.3.0

Since Jan 24Pushed 13y ago1 watchersCompare

[ Source](https://github.com/meadsteve/JSONer)[ Packagist](https://packagist.org/packages/mead-steve/json-er)[ RSS](/packages/mead-steve-json-er/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

JSONer
======

[](#jsoner)

Small utility class to help out with converting PHP objects to json.

Example Usage
=============

[](#example-usage)

Basic usage is very straight forward:

```
$jsonBuilder = new \MeadSteve\JSONer\JSONer();

$dataToOutput = array(
  'id'               => "y76",
  'requestedData'	 => $ComplexObject
);

$outputString = $jsonBuilder->convertToJSON($dataToOutput);
```

This assumes that you want to use php's default behaviour to encode the ComplexObject. If you wanted a bit more control then ideally you would implement the JsonSerializable in the class. However If this isn't an option you can provide handler functions to the JSONer object:

```
$jsonBuilder->registerSerializeFunction('ComplexObject', function($Object) {
  $moreSimpleObject = new stdClass();
  $moreSimpleObject->propertyOne = $Object->getPropertyOne();
  return $moreSimpleObject;
});
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

4862d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f6a1fc7be44918da7cc299d340d1e27b338e2396c2f2ca389857b4e2e197c4b?d=identicon)[MeadSteve](/maintainers/MeadSteve)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/mead-steve-json-er/health.svg)

```
[![Health](https://phpackages.com/badges/mead-steve-json-er/health.svg)](https://phpackages.com/packages/mead-steve-json-er)
```

PHPackages © 2026

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