PHP code example of megabgg / php-project-lvl2

1. Go to this page and download the library: Download megabgg/php-project-lvl2 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/ */

    

megabgg / php-project-lvl2 example snippets

bash
$ composer 


use function CalcDiff\genDiff;
$format = 'plain'; // plain | stylish | json
$diff = genDiff($pathToFile1, $pathToFile2, $format);
print_r($diff);