This is a program that determines the difference between two data structures.
Utility features:
- Support for different input formats: yaml and json
- Generating a report in plain text, stylish and json format
- PHP >= 7.4
- funct library
- CLI parser (docopt)
$ git clone https://github.com/nikitovskij/php-gendiff.git
$ make install
$ composer require nikitovskij/php-gendiff
$ make test
$ make lint
$ gendiff /path/to/file/first.json /path/to/file/second.json
Link to asciinema
$ gendiff /path/to/file/first.yml /path/to/file/second.yml
Link to asciinema
The pretty
output format is set by default.
$ gendiff /path/to/file/first.json /path/to/file/second.json
or
$ gendiff --format pretty /path/to/file/first.json /path/to/file/second.json
Link to asciinema:asciinema
$ gendiff --format plain /path/to/file/first.json /path/to/file/second.json
Link to asciinema
$ gendiff --format json /path/to/file/first.json /path/to/file/second.json
Link to asciinema