Skip to content

Recursive comparison of files of various formats using console.

Notifications You must be signed in to change notification settings

MaksHaks/php-project-lvl2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hexlet tests and linter status:

Actions Status linter & Test Status

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