dekabruga/gendiff

There is no license information available for the latest version (0.3) of this package.

0.3 2020-05-01 08:13 UTC

This package is auto-updated.

Last update: 2024-04-07 03:09:42 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.

Maintainability

Test Coverage

PHP CI

How to install

  1. 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

  1. 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

asciicast

You can compare two yaml config files with plain structure

asciicast

You can compare two yaml or json config files with nested structure

asciicast

You can use --format plain for plain data output

asciicast

Finally, you can use --format json for json data output

asciicast