mreweb/jsonc-parser

A JSONC (JSON with Comments) parser for PHP

Maintainers

Package info

github.com/Mreweb/JSONCParser

pkg:composer/mreweb/jsonc-parser

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

V1.0.0 2025-12-02 22:37 UTC

This package is auto-updated.

Last update: 2026-03-30 23:26:01 UTC


README

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

  • 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

Install via Composer:

composer require mreweb/jsonc-parser