1. Go to this page and download the library: Download wxb/funcompare 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/ */
wxb / funcompare example snippets
use Wxb\Funcompare\Funcompare;
$old = 'A tool compare text differences is funny';
$new = 'A tool that compare text differences';
$fc = new Funcompare();
$res = $fc->compareText($old, $new);
echo $res;
// A tool <new:that> compare text differences <old:is> <old:funny>
use Wxb\Funcompare\Funcompare;
$fromA = 'A tool compare text differences is funny';
$fromB = 'A tool that compare text differences';
$fc = new Funcompare();
$res = $fc->label('a', 'b')->compareText($fromA, $fromB);
echo $res;
// A tool <b:that> compare text differences <a:is> <a:funny>
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.