Diffs two strings and generates an object graph
Braskit\Diff is a PHP library which diffs two strings and generates an object graph. It was conceived because Sebastian Bergmann's Diff library isn't capable of parsing its own diffs (due to the output not being unified or whatever), while this library, which does parse unified diffs, doesn't generate a usable object graph. Braskit\Diff solves this problem by providing the needed glue between the two libraries.
<?php use Braskit\Diff\Diff; $differ = new Braskit\Diff\Diff(); $graph = $differ->diffStrings($one, $two);
The resulting object graph is a