PHPackages                             arokettu/json5-builder - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. arokettu/json5-builder

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

arokettu/json5-builder
======================

JSON5 config builder/encoder

2.2.1(7mo ago)1254↓100%1MITPHPPHP ^8.1

Since Apr 26Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/arokettu/json5-builder)[ Packagist](https://packagist.org/packages/arokettu/json5-builder)[ Docs](https://sandfox.dev/php/json5-builder.html)[ RSS](/packages/arokettu-json5-builder/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (7)Versions (11)Used By (1)

JSON5 Builder
=============

[](#json5-builder)

[![Packagist](https://camo.githubusercontent.com/96a6a322630576080ee8f12322983f15766d23ebf9cc743751034f1728a3c1d1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61726f6b657474752f6a736f6e352d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/json5-builder)[![PHP](https://camo.githubusercontent.com/113470d251122eb9c35ee0ce75c560fe97c89b78685a7a8ed4175b8a02a945da/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f61726f6b657474752f6a736f6e352d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/arokettu/json5-builder)[![License](https://camo.githubusercontent.com/4e138a76aea6f47c2a09e4e8bffab33ba06654db42f1e9bd02b292191e907fe3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61726f6b657474752f6a736f6e352d6275696c6465722e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Gitlab CI](https://camo.githubusercontent.com/4f0d648ee9d222bd3d834f7c37acc26403db93fa0d2f72781920a1a7b7ad484a/68747470733a2f2f696d672e736869656c64732e696f2f6769746c61622f706970656c696e652f73616e64666f782f6a736f6e352d6275696c6465722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://gitlab.com/sandfox/json5-builder/-/pipelines)[![Codecov](https://camo.githubusercontent.com/42fb584a5444b329e8c38b389625233032b985c5ef06804e1aa23ee51b6c8b52/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f676c2f73616e64666f782f6a736f6e352d6275696c6465723f7374796c653d666c61742d737175617265)](https://codecov.io/gl/sandfox/json5-builder/)

A tool to generate human-friendly JSON5 files. The tool aims to generate new files, not modifying existing ones. However, it can prettify a raw JSON a bit.

For parsing please use other tools like [colinodell/json5](https://packagist.org/packages/colinodell/json5).

The tool also supports emitting JSON and JSONC with a subset of available features.

Installation
------------

[](#installation)

```
composer require arokettu/json5-builder
```

Usage
-----

[](#usage)

```
