fidilly / gendiff
This library calculates and shows the difference between json or yaml file formats.
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/fidilly/gendiff
Requires
- docopt/docopt: ^1.0
- funct/funct: ^1.5
- symfony/yaml: ^4.3
Requires (Dev)
- phpunit/phpunit: ^8.2
- squizlabs/php_codesniffer: 3.*
README
Gendiff is a library for comparing json or yaml file formats. This library calculates and shows the difference between files.
Installation
Gendiff can be installed globally with Composer or included in a project or library.
Global installation:
composer global require fidilly/gendiff
example:
Include:
composer require fidilly/gendiff
use function Differ\Gendiff\gendiff;
gendiff($pathToFile1, $pathToFile2, $format);
Usage via terminal
Help call examples:
gendiff -h
gendiff --help
Gendiff supports multiple output formats.
examples:
gendiff <file1> <file2> ###default 'pretty' format
gendiff --format pretty <file1> <file2>
gendiff --format plain <file1> <file2>
gendiff --format json <file1> <file2>