PHPackages                             thru.io/json-pretty-printer - 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. thru.io/json-pretty-printer

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

thru.io/json-pretty-printer
===========================

A simple, well-tested JSON pretty printer and related stuff

1.0.0(11y ago)018.4k1GPL V2PHP

Since Feb 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/Thruio/JsonPrettyPrinter)[ Packagist](https://packagist.org/packages/thru.io/json-pretty-printer)[ RSS](/packages/thruio-json-pretty-printer/feed)WikiDiscussions master Synced 1mo ago

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

JsonPrettyPrinter
=================

[](#jsonprettyprinter)

[![Build Status](https://camo.githubusercontent.com/c0f6126fe4a7306261b0c0c27934c4e598fc7bebcd4bbcdab27af597e8b2560b/68747470733a2f2f7472617669732d63692e6f72672f54687275696f2f4a736f6e5072657474795072696e7465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Thruio/JsonPrettyPrinter) [![Code Climate](https://camo.githubusercontent.com/20db7c389558323d28d0f33f75bb1cd38a444775c1947b74dd293c5b4ebdc6f1/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f54687275696f2f4a736f6e5072657474795072696e7465722f6261646765732f6770612e737667)](https://codeclimate.com/github/Thruio/JsonPrettyPrinter) [![Test Coverage](https://camo.githubusercontent.com/eed691991316ef8cdfc0c0fd0d450551bc2e9eaa71ebef654c821a07c6085ab5/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f54687275696f2f4a736f6e5072657474795072696e7465722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/Thruio/JsonPrettyPrinter)

### Install

[](#install)

1. Use [Composer](http://getcomposer.org) to install JsonPrettyPrinter into your project:

    ```
    composer require thru.io/json-pretty-printer
    ```
2. Use it as follows:

    ```
    use \Thru\JsonPrettyPrinter\JsonPrettyPrinter;

    $json = JsonPrettyPrinter::Json($object);
    ```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4106d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5707be384b9daab9858223c5dfead9d692e8b5f6afa8dd23ad5c5cbc149316b2?d=identicon)[matthewbaggett](/maintainers/matthewbaggett)

---

Top Contributors

[![matthewbaggett](https://avatars.githubusercontent.com/u/943948?v=4)](https://github.com/matthewbaggett "matthewbaggett (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thruio-json-pretty-printer/health.svg)

```
[![Health](https://phpackages.com/badges/thruio-json-pretty-printer/health.svg)](https://phpackages.com/packages/thruio-json-pretty-printer)
```

###  Alternatives

[voku/portable-ascii

Portable ASCII library - performance optimized (ascii) string functions for php.

574401.5M117](/packages/voku-portable-ascii)[spatie/php-structure-discoverer

Automatically discover structures within your PHP application

17824.5M57](/packages/spatie-php-structure-discoverer)[laminas/laminas-uri

A component that aids in manipulating and validating » Uniform Resource Identifiers (URIs)

3834.9M89](/packages/laminas-laminas-uri)[remipelhate/distil

164.4k](/packages/remipelhate-distil)

PHPackages © 2026

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