PHPackages                             t1st3/php-json-minify - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. t1st3/php-json-minify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

t1st3/php-json-minify
=====================

0.6.2(9y ago)1470.9k↓15.8%4[3 issues](https://github.com/T1st3/php-json-minify/issues)[1 PRs](https://github.com/T1st3/php-json-minify/pulls)MITPHPPHP &gt;=5.6.0

Since Jan 14Pushed 6y ago3 watchersCompare

[ Source](https://github.com/T1st3/php-json-minify)[ Packagist](https://packagist.org/packages/t1st3/php-json-minify)[ Docs](https://github.com/t1st3/php-json-minify)[ RSS](/packages/t1st3-php-json-minify/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (17)Used By (0)

php-json-minify
===============

[](#php-json-minify)

[![Packagist version](https://camo.githubusercontent.com/cea1d5125a49e15633cec7e63cbc060419c7f65b86f32304a0f205588170f723/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f74317374332f7068702d6a736f6e2d6d696e6966792e737667)](https://packagist.org/packages/t1st3/php-json-minify)[![Build Status](https://camo.githubusercontent.com/cb33fafa3f412d12f646ec0541937cab077692e29ce3671347532b5ea43ff64d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f74317374332f7068702d6a736f6e2d6d696e6966792e737667)](https://travis-ci.org/t1st3/php-json-minify)[![Dependency Status](https://camo.githubusercontent.com/2a5ec65c914222db5541c018ea05d267f90b4e420f28004ea66311e9f8202afb/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535306234643461613830623566626137393030303135332f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/550b4d4aa80b5fba79000153)[![Percentage of issues still open](https://camo.githubusercontent.com/3ff6f2491d04ede32f61a88604f472e592cb36a10ad3396f4282189b042b7126/687474703a2f2f697369746d61696e7461696e65642e636f6d2f62616467652f6f70656e2f74317374332f7068702d6a736f6e2d6d696e6966792e737667)](http://isitmaintained.com/project/t1st3/php-json-minify "Percentage of issues still open")

About
-----

[](#about)

This JSON minifier written in PHP is based on the [PHP part of JSON.minify](https://github.com/getify/JSON.minify/tree/php) script by [Kyle Simspon](https://github.com/getify). This project being functional entirely relies on Kyle's work: this project basically wraps Kyle's script in a class, and adds some fancy fashion to that class, such as publication on [Packagist](https://packagist.org) for availability with [Composer](https://getcomposer.org/) and documentation generated with [PhpDocumentor](http://phpdoc.org). See original author's [blog post](http://blog.getify.com/json-comments/) if you want to know more.

This minifier also removes comments from JSON. While the authors of `php-json-minify` and `JSON.minify` do not encourage the use of comments in JSON, they are glad to provide you a way to remove those comments anyway!

Usage
-----

[](#usage)

```
