Skip to content

This project is a console utility that finds the difference between two files. This utility can work with such data formats as: JSON, YAML, YML. You can also see the comparison result in different output formats, for example: Stylish, Plain, JSON.

Notifications You must be signed in to change notification settings

NikolaiProgramist/php-project-48

Repository files navigation

Differ

Actions Status tests-check Maintainability Test Coverage

About

This project is a console utility that finds the difference between two files. This utility can work with such data formats as: JSON, YAML, YML. You can also see the comparison result in different output formats, for example: stylish, plain, json. The default output format is stylish. If the files do not exist, the utility will notify you about it.

Prerequisites

  • Linux, MacOS, WSL
  • PHP >=8.3
  • Composer
  • Make
  • Git

Install

git clone https://github.com/NikolaiProgramist/php-project-48.git
cd php-project-48
make install

Run

php bin/gendiff --format=stylish file1.json file2.json

Examples in asciinema:

JSON

asciicast

YAML

asciicast

Nested YAML (stylish format)

asciicast

Nested YAML (plain format)

asciicast

JSON of Differ (json format)

asciicast

About

This project is a console utility that finds the difference between two files. This utility can work with such data formats as: JSON, YAML, YML. You can also see the comparison result in different output formats, for example: Stylish, Plain, JSON.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published