valentina-vasileva / php-project-lvl2
There is no license information available for the latest version (1.4.1) of this package.
1.4.1
2021-01-11 14:43 UTC
Requires
- docopt/docopt: ^1.0
- funct/funct: ^1.5
- symfony/yaml: ^5.2
Requires (Dev)
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.5
README
Tests and linter status:
GENDIFF
A PHP package which shows difference (stylish, plain or json format) between two files (yaml, json).
Installation
Via Composer
As a CLI:
$ composer global require valentina-vasileva/php-project-lvl2
As a library to your project:
$ composer require valentina-vasileva/php-project-lvl2
Usage
As a CLI:
$ gendiff [--format <fmt>] <path_to_file1> <path_to_file2>
Also you can show yourself a descriptoin of the CLI:
$ gendiff -h
$ gendiff --help
As a library to your project:
use function Differ\Differ\genDiff;
genDiff($filepath1, $filepath2, $formatName = 'stylish');