PHPackages                             iamjohndev/json-reform - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. iamjohndev/json-reform

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

iamjohndev/json-reform
======================

A simple PHP Library that can read and format JSON data.

241PHP

Since Dec 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/PseudoDevs/JSONReform)[ Packagist](https://packagist.org/packages/iamjohndev/json-reform)[ RSS](/packages/iamjohndev-json-reform/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

JsonReform
==========

[](#jsonreform)

A simple PHP library for reading, formatting and getting values of a JSON data.

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

[](#installation)

Install via Composer: `composer require iamjohndev/json-reform:dev-main`

Usage
-----

[](#usage)

```
    use iamjohndev\JSONReform;

    // Read JSON data from a string
    $json = '{"name": "John", "age": 30}';
    $reader = new JSONReform($json);

    // Get a value from the JSON data
    $name = $reader->getValue('name'); // "John"

    // Format the JSON data
    $prettyJson = $reader->format('pretty'); // "{\n    "name": "John",\n    "age": 30\n}"

    // Read JSON data from a file
    $reader = JSONReform::fromFile('data.json');

    // Get a nested value from the JSON data
    $value = $reader->getValue('data.persons.0.name'); // "John"
```

API
===

[](#api)

```
JSONReform::__construct(string $json)
// Creates a new JSONReform instance from a JSON string.

JSONReform::fromFile(string $path)
// Creates a new JSONReform instance from a JSON file.

JSONReform::getValue(string $path, mixed $default = null): mixed
// Gets the value at the specified path in the JSON data.

JsonReform::fromHTTPRequestBody();
// Creates a new JsonReform instance from an HTTP Request Body

JSONReform::format(string $format = 'json'): string
// Returns the JSON string in the specified format.
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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/28098260?v=4)[John Lester Legaspi](/maintainers/PseudoDevs)[@PseudoDevs](https://github.com/PseudoDevs)

---

Top Contributors

[![PseudoDevs](https://avatars.githubusercontent.com/u/28098260?v=4)](https://github.com/PseudoDevs "PseudoDevs (12 commits)")[![SnoopyCodeX](https://avatars.githubusercontent.com/u/36133216?v=4)](https://github.com/SnoopyCodeX "SnoopyCodeX (3 commits)")

### Embed Badge

![Health badge](/badges/iamjohndev-json-reform/health.svg)

```
[![Health](https://phpackages.com/badges/iamjohndev-json-reform/health.svg)](https://phpackages.com/packages/iamjohndev-json-reform)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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