PHP Package: colinodell/json5

JSON5 PHP library for improved data serialization with support for comments, keys without quotes, and more.

Current Version: 3.0.0
Last Updated: 2024-02-09
PHP Requirement: ^8.0
Dependencies: None

Package Description

The JSON5 PHP library by colinodell provides enhanced JSON capabilities by supporting comments, unquoted keys, single and multi-line strings, and trailing commas. This library is designed to improve data serialization and provide a more flexible and readable alternative to standard JSON. With JSON5, developers can write cleaner, more human-readable configurations and data structures in PHP projects.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.0.0

Download Download v3.0.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com

require_once 'libs/colinodell/json5/3.0.0/loader.php';
use ColinODell\Json5\Json5;

$obj = new Json5();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.