hallernsk/php-project-lvl2

View on GitHub
README.md

Summary

Maintainability
Test Coverage
# php-project-lvl2

[![Github Actions Status](https://github.com/hallernsk/php-project-lvl2/workflows/PHP%20CI/badge.svg)](https://github.com/hallernsk/php-project-lvl2/actions)
[![Maintainability](https://api.codeclimate.com/v1/badges/568be85411a7fc055815/maintainability)](https://codeclimate.com/github/hallernsk/php-project-lvl2/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/568be85411a7fc055815/test_coverage)](https://codeclimate.com/github/hallernsk/php-project-lvl2/test_coverage)

### Hexlet tests and linter status:
[![Actions Status](https://github.com/hallernsk/php-project-lvl2/workflows/hexlet-check/badge.svg)](https://github.com/hallernsk/php-project-lvl2/actions)

A php package calculates the difference between two json/yml files and outputs it in stylish (default), plain or json format

### Setup

    $ composer global require hallernsk/php-project-lvl2

### Run

    $ gendiff [--format <fmt>] <file1> <file2>

Generate diff of two JSON-files:

[![asciicast](https://asciinema.org/a/hkdVsIeTDNSAeL4uLMRQsPF7r.svg)](https://asciinema.org/a/hkdVsIeTDNSAeL4uLMRQsPF7r)

Generate diff of two YAML-files:

[![asciicast](https://asciinema.org/a/s835PU1OOe3kLbdVgVPVt8RLO.svg)](https://asciinema.org/a/s835PU1OOe3kLbdVgVPVt8RLO)

Generate diff of two complex JSON/YAML-files:

[![asciicast](https://asciinema.org/a/mhB0zaaeSowvdNQw8eJlGAWCj.svg)](https://asciinema.org/a/mhB0zaaeSowvdNQw8eJlGAWCj)

Generate diff of two complex JSON/YAML-files in plain format:

[![asciicast](https://asciinema.org/a/yXMDA3ojoKVszaB9cm844dFDl.svg)](https://asciinema.org/a/yXMDA3ojoKVszaB9cm844dFDl)

Generate diff of two complex JSON/YAML-files in json format:

[![asciicast](https://asciinema.org/a/lbjBicfMAR2XyFjLv7YZAMIL4.svg)](https://asciinema.org/a/lbjBicfMAR2XyFjLv7YZAMIL4)