Skip to content

robertsaupe/php-json

Repository files navigation

php-json

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