PHP Package: localheinz/diff

PHP library for comparing differences between two files or strings, providing a visual representation of changes.

Current Version: 1.2.0
Last Updated: 2024-12-04
PHP Requirement: ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0
Dependencies:
phpunit/phpunit
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

The 'localheinz/diff' PHP library offers an intuitive way to analyze and display variations in content across files or strings. It empowers developers to understand alterations between texts efficiently. Utilize this library to streamline your comparison processes and enhance version control in your projects.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 1.2.0

Download Download v1.2.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/localheinz/diff/1.2.0/loader.php';
require_once 'libs/sebastianbergmann/phpunit/12.4.1/loader.php';

use Localheinz\Diff\Renderer\Html\Renderer;
use PHPUnit\Framework\TestCase;

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