dekabruga / gendiff
Requires
- docopt/docopt: ^1.0
- funct/funct: ^1.5
- symfony/yaml: ^5.0
Requires (Dev)
- phpunit/phpunit: ^8.5
- squizlabs/php_codesniffer: ^3.5
This package is auto-updated.
Last update: 2025-05-07 05:59:02 UTC
README
Gendiff
Gendiff is a utility for comparing two configuration files. Supported formats: json, yaml. The result of comparing can be displayed in different formats: pretty, plain or json.
How to install
- Installation with composer as a cli utility:
Enter the command composer global require dekabruga/php-project-lvl1
to install
Use command gendiff [--format <fmt>] <firstFile> <secondFile>
for compare files
- You also can use this utility as library:
Enter the command in your project composer require dekabruga/php-project-lvl1
to install
And import function use Differ/Differ/genDiff;
How it works
You can compare two json config files with plain structure
You can compare two yaml config files with plain structure
You can compare two yaml or json config files with nested structure
You can use --format plain
for plain data output
Finally, you can use --format json
for json data output