Download the PHP package ergebnis/json-printer without Composer
On this page you can find all versions of the php package ergebnis/json-printer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ergebnis/json-printer
More information about ergebnis/json-printer
Files in ergebnis/json-printer
Package json-printer
Short Description Provides a JSON printer, allowing for flexible indentation.
License MIT
Homepage https://github.com/ergebnis/json-printer
Informations about the package json-printer
json-printer
This project provides a composer
package with a JSON printer, allowing for flexible indentation.
Installation
Run
Usage
Let's assume we have a variable $json
which contains some JSON that is not indented:
or indented with 4 spaces:
but we want to indent it with 2 spaces (or tabs).
This is where Ergebnis\Json\Printer\Printer
comes in
which results in $printed
:
:bulb: Note that this printer is only concerned with normalizing the indentation, no escaping or un-escaping occurs.
Changelog
The maintainers of this project record notable changes to this project in a changelog.
Contributing
The maintainers of this project suggest following the contribution guide.
Code of Conduct
The maintainers of this project ask contributors to follow the code of conduct.
General Support Policy
The maintainers of this project provide limited support.
You can support the maintenance of this project by sponsoring @localheinz or requesting an invoice for services related to this project.
PHP Version Support Policy
This project supports PHP versions with active and security support.
The maintainers of this project add support for a PHP version following its initial release and drop support for a PHP version when it has reached the end of security support.
Security Policy
This project has a security policy.
License
This project uses the MIT license.
Credits
The Dave Perrett).
The ZendTest\Json\JsonTest
(originally licensed under New BSD License).
Social
Follow @localheinz and @ergebnis on Twitter.
All versions of json-printer with dependencies
ext-json Version *
ext-mbstring Version *