aspov/differ

There is no license information available for the latest version (dev-master) of this package.

project #2

dev-master 2019-11-02 06:40 UTC

This package is auto-updated.

Last update: 2024-04-29 04:13:40 UTC


README

Build Status Maintainability Test Coverage

Generates a difference between files

Installation

$ composer global require aspov/differ

Usage

$ gendiff --format=json path\To\file1.json path\to\file2.json

Usage:
  gendiff (-h|--help)
  gendiff (-v|--version)
  gendiff [--format <fmt>] <firstFile> <secondFile>

Options:
  -h --help                     Show this screen
  -v --version                  Show version
  --format <fmt>                Report format [default: pretty]

To your project, you can use the function

<?php

use function Differ\differ\genDiff;

$diff = genDiff(path\To\file1.json, path\to\file2.json, 'json');

Supported extensions: json, yaml. Report formats: pretty, plain, json.

Examples

Json asciicast Yaml asciicast AST asciicast Plain format asciicast Json format asciicast