KDuma/Comparator
, (*1)
Batch compare multiple files, (*2)
Setup
Run bellow command to globally install Comparator:, (*3)
composer global require kduma/comparator
and add ~/.composer/vendor/bin/ directory to your PATH in your ~/.bash_profile` (or~/.bashrc`):, (*4)
export PATH=~/.composer/vendor/bin:$PATH
Updating
Execute following command:, (*5)
composer global update
Usage
Usage: bin/compare [-c compare_to, --compare compare_to] [-f format, --format format] [-h, --help] [-o output, --output output] [path] [file]
Required Arguments:
path
The path with files to compare.
Optional Arguments:
-h, --help
Prints a usage statement
-c compare_to, --compare compare_to
Compare to
-f format, --format format
Output format (text or cli)
-o output, --output output
Output file for text format
file
If defined, compares specified file in subfolder.
StringCompare
A special thanks to creators of StringCompare, a PHP class that this package is using to compare text files., (*6)
Packagist
View this package on Packagist.org: kduma/comparator, (*7)