This is a console application that used to compute differences between two .json or .yaml files. Output results may be shown to the console in several formats, such that Stylish, Plane or JSON.
To getting start for this application use several steps:
- install PHP 8.3 and latest version of the Composer framework;
- install required packages: $ make install
- run application:
$ bin/gendiff fixtures/file1.json fixtures/file2.json
To print help to the console use command:
$ bin/gendiff -h
For developers may be used function, that return string result in selected format:
\Differ\Differ\genDiff(file1, file2, format)