Registry / utility / phpspec-php-diff

phpspec-php-diff

JSON →
library1.1.3phppackagistunverified

A comprehensive library for generating differences between two hashable objects (strings or arrays).

composer require phpspec/php-diff
INSTALL
IMPORT
SIG · PHPSPEC-PHP-DIFF
P
phpspec-php-diff
utilityphpv1.1.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Diff
use PhpDiff\Diff;

Generate and render a side-by-side HTML diff of two strings.

use PhpDiff\Diff; $diff = new Diff('old string', 'new string'); $renderer = new \PhpDiff\Renderer\Html\SideBySide(); echo $diff->render($renderer);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Resources
phpspec-php-diff — pip install phpspec-php-diff · libregistry