PHP Package: swaggest/json-diff

Efficient PHP library for comparing and finding differences between JSON objects easily

Current Version: 3.12.1
Last Updated: 2025-03-10
PHP Requirement: >=7.1
Dependencies: None

Package Description

The swaggest/json-diff library provides a comprehensive set of tools to compare JSON objects efficiently in PHP applications. With a focus on simplicity and accuracy, this library offers a seamless experience for identifying variations and changes within JSON structures. By leveraging this library, developers can streamline the process of detecting variations between JSON data, enabling better decision-making and data handling within their projects.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.12.1

Download Download v3.12.1

Code Integration Example

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

<?php
// Example from PHPlibraries.com

require_once 'libs/swaggest/json-diff/3.12.1/loader.php';
use Swaggest\JsonDiff\Diff;
use Swaggest\JsonDiff\Context;
use Swaggest\JsonDiff\Exception;

$obj = new Diff();
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.