Skip to content

hglattergotz/json-pretty

 
 

Repository files navigation

JSON Pretty

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": "0.1.*"
    }
}

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

About

Provides support for json pretty printing in php 5.3

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%