Download the PHP package alshad/gendiff without Composer
On this page you can find all versions of the php package alshad/gendiff. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download alshad/gendiff
More information about alshad/gendiff
Files in alshad/gendiff
Package gendiff
Short Description The second project in the profession of PHP training platform Hexlet
License MIT
Informations about the package gendiff
php-project-lvl2
Install
$ composer global require alshad/gendiff
https://asciinema.org/a/fgL24h2P4rSsYnsFRjxW3iIoN
CLI for Generate diff
Help and Version
$ gendiff -h
$ gendiff -v
https://asciinema.org/a/iNDdvVwz1nXgT4VeYgZ4q7CGn
Compare 2 files
Generate diff for flat .json files (files are in the working directory)
$gendiff file1.json file2.json.
https://asciinema.org/a/dNepFcHJ4ZPoD92Rd8ZSWTdzx
Generate diff for flat .yaml files (files are in the working directory)
$gendiff file1.yaml file2.yaml
https://asciinema.org/a/1TgByMyPBKlBjIp1MfRMJCWNZ
Generate diff for recursive .json files (files are in the working directory)
$gendiff file1.json file2.json
https://asciinema.org/a/6S60yo57AR5cAgHbKV9DSKa5y
Generate diff for recursive .yaml files (files are in the working directory)
$gendiff file1.yaml file2.yaml
https://asciinema.org/a/uUwbynJfhzrQqvFCqCnKlaCrr
Generate diff for recursive .json files (files are in the working directory) and output in format "plain"
$gendiff --format plain file1.json file2.json
https://asciinema.org/a/EIcWFiEiNwMyANoBjFbcKBXu7
Generate diff for recursive .json files (files are in the working directory) and output in format "json"
$gendiff --format json file1.json file2.json