PHPackages                             camspiers/json-pretty - 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. camspiers/json-pretty

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

camspiers/json-pretty
=====================

Provides support for json pretty printing

1.0.2(10y ago)23702.5k↑31.7%8[1 issues](https://github.com/camspiers/json-pretty/issues)19MITPHP

Since Jan 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/camspiers/json-pretty)[ Packagist](https://packagist.org/packages/camspiers/json-pretty)[ RSS](/packages/camspiers-json-pretty/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (6)Used By (19)

JSON Pretty
===========

[](#json-pretty)

[![Build Status](https://camo.githubusercontent.com/143a419c142c0bad8aeac3ce754b05fe9736a2a9fd40c60d0147fc1316852315/68747470733a2f2f7472617669732d63692e6f72672f63616d7370696572732f6a736f6e2d7072657474792e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/camspiers/json-pretty)

This project provides pretty printing for json in php 5.3.

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

[](#installation)

Make sure the following is present in your `composer.json` file:

```
{
    "require": {
        "camspiers/json-pretty": "1.0.*"
    }
}
```

Then run:

```
$ composer update

```

Usage
-----

[](#usage)

```
$jsonPretty = new Camspiers\JsonPretty\JsonPretty;

echo $jsonPretty->prettify(array('test' => 'test'));
```

Testing
-------

[](#testing)

To run the unit tests with phpunit installed globally:

```
$ phpunit

```

To run the unit tests with phpunit installed via `composer install --dev`:

```
$ vendor/bin/phpunit

```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 57.1% 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 ~276 days

Total

5

Last Release

3755d ago

Major Versions

0.1.0 → 1.0.02014-01-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/91d02ba78b01d0432821f6195f11d6b95aa8da31f02f8aaea7a2e7215662061a?d=identicon)[camspiers](/maintainers/camspiers)

---

Top Contributors

[![camspiers](https://avatars.githubusercontent.com/u/51294?v=4)](https://github.com/camspiers "camspiers (12 commits)")[![h4cc](https://avatars.githubusercontent.com/u/2981491?v=4)](https://github.com/h4cc "h4cc (3 commits)")[![garak](https://avatars.githubusercontent.com/u/179866?v=4)](https://github.com/garak "garak (2 commits)")[![hglattergotz](https://avatars.githubusercontent.com/u/506901?v=4)](https://github.com/hglattergotz "hglattergotz (2 commits)")[![khromov](https://avatars.githubusercontent.com/u/1207507?v=4)](https://github.com/khromov "khromov (1 commits)")[![sarciszewski](https://avatars.githubusercontent.com/u/3710836?v=4)](https://github.com/sarciszewski "sarciszewski (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[wikimedia/less.php

PHP port of the LESS processor

12327.4M77](/packages/wikimedia-lessphp)[trntv/probe

System information provider

33652.4k5](/packages/trntv-probe)[kanuni/filament-cards

519.0k](/packages/kanuni-filament-cards)[gggeek/ggsysinfo

Allows eZ Publish administrators and developers to have better insight into their working installation

137.8k](/packages/gggeek-ggsysinfo)

PHPackages © 2026

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