PHP code example of gipfl / diff
1. Go to this page and download the library: Download gipfl/diff library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gipfl / diff example snippets
use gipfl\Diff\HtmlRenderer\SideBySideDiff;
use gipfl\Diff\PhpDiff;
le_get_contents(__DIR__ . '/right.json')
);
$html->add(new SideBySideDiff($diff));