robertsaupe/php-json

php library for json and jsonc parsing

1.0.4 2024-02-21 10:17 UTC

This package is auto-updated.

Last update: 2024-03-21 10:35:55 UTC


README

Minimum PHP version: 8.2 Packagist Version Packagist Downloads License

php library for json and jsonc parsing

Supporting

GitHub | Patreon | PayPal | Amazon

Installing

composer require robertsaupe/php-json

Getting started

Json

use robertsaupe\Json\Json;

$json = new Json();
print_r($json->decodeFile('path_to_file.json'));

Jsonc

use robertsaupe\Json\Jsonc;

$jsonc = new Jsonc();
print_r($jsonc->decodeFile('path_to_file.jsonc'));

Credits