Skip to content

NONstop5/php-project-lvl2

Repository files navigation

Hexlet tests and linter status:

Actions Status Main Maintainability Test Coverage

Library "Differ"

Requirements

  • PHP >= 8.2
  • Composer >= 2
  • make >= 4

Installation

git clone [email protected]:NONstop5/php-project-lvl2.git

make install

Help

gendiff -h

Description

<?php

declare(strict_types=1);

use function Differ\Differ\genDiff;

genDiff(string $firstFilePath, string $secondFilePath, string $format = 'stylish'): string
  • $firstFilePath - path to json or yaml file
  • $secondFilePath - path to json or yaml file
  • $format - output format type, can be stylish, plain, json (default: stylish)

Json plain diff Demo

Yaml plain diff Demo

Json and Yaml plain/nested diff in stylish format Demo

Json and Yaml nested in plain format diff Demo

Json and Yaml nested in json format diff Demo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published