ghostff/json-formatter

Allows you to pretty-print JSON data in a human-readable format

v1.0.0 2016-09-11 00:15 UTC

This package is auto-updated.

Last update: 2022-05-16 04:59:00 UTC


README

Allows you to pretty-print JSON data in a human-readable format

Latest Stable Version License Latest Stable Version Minimum PHP Version

#Installation
You can download the Latest release version as a standalone, alternatively you can use Composer for optional dependencies such as PHPUnit.

$ composer require ghostff/json-formatter

Or add:

{
    "require": {
        "ghostff/json-formatter": "^1.0"
    }
}

to your composer.json

Usage:

<?php

$source = array (
  array ( 'points' => 1, 'name' => 'Peter'),
  array ( 'points' => 5, 'name' => 'Mike'),
  array ( 'points' => 2, 'name' => 'John Zoo'),
  array ( 'points' => 2, 'name' => 'John Ab')
);

echo Json::encode($source);

Outputs:

alt tag