haks/code

Difference Calculator at PHP

v1.0.0 2022-01-25 21:42 UTC

This package is not auto-updated.

Last update: 2024-04-18 07:10:27 UTC


README

Hexlet tests and linter status:

Actions Status linter & Test Status 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36636463646331653135643534643565303434372f6d61696e7461696e6162696c697479 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36636463646331653135643534643565303434372f746573745f636f766572616765

Description

The Difference Calculator is a console solution for finding differences between two files using PHP. Support for JSON, YML and YAML formats is provided. The solution supports various formats for outputting differences (Stylish, Plain and Json). The operation logic is based on recursive file comparison and takes into account the types and structure of the compared data.

Setup

git clone https://github.com/MaksHaks/php-project-lvl2.git
make install

Calculate Differences

Calculate difference between file1 and file2:

./bin/gendiff --format <format> <file1> <file2> 

For more information

./bin/gendiff -h

asciicast asciicast