PHPackages                             mreweb/jsonc-parser - 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. mreweb/jsonc-parser

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

mreweb/jsonc-parser
===================

A JSONC (JSON with Comments) parser for PHP

V1.0.0(7mo ago)04MITPHPPHP &gt;=8.0

Since Dec 2Pushed 7mo agoCompare

[ Source](https://github.com/Mreweb/JSONCParser)[ Packagist](https://packagist.org/packages/mreweb/jsonc-parser)[ RSS](/packages/mreweb-jsonc-parser/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (0)

JSONC Parser for PHP
====================

[](#jsonc-parser-for-php)

A simple and efficient **JSONC (JSON with Comments) parser** for PHP.
It allows you to read JSON files containing comments (`//` and `/* ... */`) safely in PHP projects.

Features
--------

[](#features)

- Supports single-line (`//`) and multi-line (`/* */`) comments
- Safe: comments inside string values are preserved
- Returns PHP array or object
- Compatible with Laravel and any PHP project

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

[](#installation)

Install via Composer:

```
composer require mreweb/jsonc-parser
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance65

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

213d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/61b3837a9909f443744230591408793f3913e162f6e996a8e4f607c09dfbcf39?d=identicon)[Esmaeeli1923](/maintainers/Esmaeeli1923)

---

Top Contributors

[![Mreweb](https://avatars.githubusercontent.com/u/50191824?v=4)](https://github.com/Mreweb "Mreweb (3 commits)")

### Embed Badge

![Health badge](/badges/mreweb-jsonc-parser/health.svg)

```
[![Health](https://phpackages.com/badges/mreweb-jsonc-parser/health.svg)](https://phpackages.com/packages/mreweb-jsonc-parser)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M47](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[jstewmc/rtf

Read and write Rich Text Format (RTF) documents with PHP

45153.1k6](/packages/jstewmc-rtf)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
