camspiers/json-pretty

This package is abandoned and no longer maintained. No replacement package was suggested.

Provides support for json pretty printing

Maintainers

👁 camspiers

Package info

github.com/camspiers/json-pretty

pkg:composer/camspiers/json-pretty

Statistics

Installs: 717 743

Dependents: 18

Suggesters: 0

Stars: 22

Open Issues: 2

1.0.2 2016-02-06 01:25 UTC

Requires

None

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT 17be37cb83af8014658da48fa0012604179039a7

  • Cam Spiers <cameron.woop@heyday.co.nz>

This package is auto-updated.

Last update: 2022-05-19 08:39:02 UTC


README

👁 Build Status

This project provides pretty printing for json in php 5.3.

Installation

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

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

Then run:

$ composer update

Usage

$jsonPretty = new Camspiers\JsonPretty\JsonPretty;

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

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