2017 © Pedro Peláez
 

library json-pretty-printer

A PHP library providing pretty printing JSON strings for PHP < 5.4

image

markenwerk/json-pretty-printer

A PHP library providing pretty printing JSON strings for PHP < 5.4

  • Monday, August 8, 2016
  • by bonscho
  • Repository
  • 1 Watchers
  • 1 Stars
  • 516 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 20 % Grown

The README.md

PHP JSON Pretty Printer

Build Status Test Coverage Dependency Status SensioLabs Insight Code Climate Latest Stable Version Total Downloads License, (*1)

A PHP library providing pretty printing JSON strings for PHP < 5.4 based upon this StackOverflow answer by Kendall Hopkins., (*2)

Installation

```{json} { "require": { "markenwerk/json-pretty-printer": "~1.0" } }, (*3)


## Usage ### Autoloading and namesapce ```{php} require_once('path/to/vendor/autoload.php');

Pretty printing a JSON string

Default indentation is one tab., (*4)

```{php} use Markenwerk\JsonPrettyPrinter;, (*5)

$jsonString = json_encode($myObject); $prettyPrinter = new JsonPrettyPrinter\JsonPrettyPrinter(); $prettyPrinted = $prettyPrinter ->setIndentationString(' ') ->prettyPrint($jsonString); ```, (*6)


Contribution

Contributing to our projects is always very appreciated.
But: please follow the contribution guidelines written down in the CONTRIBUTING.md document., (*7)

License

PHP JSON Pretty Printer is under the MIT license., (*8)

The Versions

08/08 2016

dev-master

9999999-dev http://markenwerk.net/

A PHP library providing pretty printing JSON strings for PHP < 5.4

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

json pretty print

15/07 2016

1.0.1

1.0.1.0 http://markenwerk.net/

A PHP library providing pretty printing JSON strings for PHP < 5.4

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

json pretty print

12/07 2016

1.0.0

1.0.0.0 http://markenwerk.net/

A PHP library providing pretty printing JSON strings for PHP < 5.4

  Sources   Download

MIT

The Requires

  • php >=5.3

 

The Development Requires

json pretty print