PHPackages                             yulia633/hexlet-project-2 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. yulia633/hexlet-project-2

ActiveProject[CLI &amp; Console](/categories/cli)

yulia633/hexlet-project-2
=========================

Generate diff

1.2.0(5y ago)018MITPHPPHP &gt;=7.4.3

Since Jan 6Pushed 5y ago2 watchersCompare

[ Source](https://github.com/yulia633/php-project-lvl2)[ Packagist](https://packagist.org/packages/yulia633/hexlet-project-2)[ RSS](/packages/yulia633-hexlet-project-2/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (6)Used By (0)

### Hexlet tests and linter status:

[](#hexlet-tests-and-linter-status)

[![Actions Status](https://github.com/yulia633/php-project-lvl2/workflows/hexlet-check/badge.svg)](https://github.com/yulia633/php-project-lvl2/actions)

CLI Differences Files Hexlet
----------------------------

[](#cli-differences-files-hexlet)

[![Maintainability](https://camo.githubusercontent.com/90b6871c8effe3a2267af950ada31032c10985c9bcaa313b8370dee1cfe508f6/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38643733383337666332313166633235353264302f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/yulia633/php-project-lvl2/maintainability)[![Test Coverage](https://camo.githubusercontent.com/33e1bcb1c0c95df710e250005189d948bffcec463ecc117aad75520bce86638f/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f38643733383337666332313166633235353264302f746573745f636f766572616765)](https://codeclimate.com/github/yulia633/php-project-lvl2/test_coverage)[![linter and tests](https://github.com/yulia633/php-project-lvl2/workflows/linter%20and%20tests/badge.svg)](https://github.com/yulia633/php-project-lvl2/workflows/linter%20and%20tests/badge.svg)

Второй проект из четырёх, в рамках профессии PHP-программист на [Хекслет](https://ru.hexlet.io/professions/php).

#### Описание проекта

[](#описание-проекта)

В рамках данного проекта необходимо реализовать утилиту для поиска отличий в конфигурационных файлах.

Возможности утилиты:

```
Поддержка разных форматов: json, yaml
Генерация отчетов json, plain, stylish

```

Пример использования:
---------------------

[](#пример-использования)

#### CLI приложение:

[](#cli-приложение)

```
$ gendiff [--format ]

```

Посмотреть описание в командной строке:

```
$ gendiff -h
$ gendiff --help

```

#### Библиотека:

[](#библиотека)

```
use function Differ\Differ\genDiff;

genDiff($pathToFile1, $pathTofile2, $format = 'stylish');

```

#### Установка

[](#установка)

Для глобальной установки выполните команду: `$ composer global require yulia633/hexlet-project-2`

Для установки в проект как библиотеку выполните команду: `$ composer require yulia633/hexlet-project-2`

#### Для разработки

[](#для-разработки)

- PHP &gt;=7.4
- Composer

#### Команды

[](#команды)

```
$ make install
$ make lint
$ make test
```

### Как работает пакет

[](#как-работает-пакет)

#### Сравнение файлов json и yaml/yml в формате по умолчанию stylish

[](#сравнение-файлов-json-и-yamlyml-в-формате-по-умолчанию-stylish)

[![asciicast](https://camo.githubusercontent.com/f03e750a8114af4df840d149a0bcd1fbcea142d293495cdaa49aa0cda72c6db8/68747470733a2f2f61736369696e656d612e6f72672f612f3339343032352e737667)](https://asciinema.org/a/394025)

#### Сравнение файлов json и yaml/yml в формате stylish

[](#сравнение-файлов-json-и-yamlyml-в-формате-stylish)

[![asciicast](https://camo.githubusercontent.com/340bfd48fca349314cd784c2bcf3c921cb4e196535604cf504947b795baab17f/68747470733a2f2f61736369696e656d612e6f72672f612f3339323131312e737667)](https://asciinema.org/a/392111)

#### Сравнение файлов json/yaml в формате plain

[](#сравнение-файлов-jsonyaml-в-формате-plain)

[![asciicast](https://camo.githubusercontent.com/bff29b1c20efad96a099cde8f9fcc1a885060c4034c921b2762752b7f874579b/68747470733a2f2f61736369696e656d612e6f72672f612f3339323130332e737667)](https://asciinema.org/a/392103)

#### Сравнение файлов json/yaml в формате json

[](#сравнение-файлов-jsonyaml-в-формате-json)

[![asciicast](https://camo.githubusercontent.com/4f0a2cc46e9155c9a2c82fa55b1a92e599dd46974490fb80186b8c05e36605c4/68747470733a2f2f61736369696e656d612e6f72672f612f3339323130392e737667)](https://asciinema.org/a/392109)

#### Пример работы с запуском из локального окружения

[](#пример-работы-с-запуском-из-локального-окружения)

[![asciicast](https://camo.githubusercontent.com/b7bd26af3c32efd30bd8b0cd99e98b494d2bcd8a88fb29d194673750a4d56edc/68747470733a2f2f61736369696e656d612e6f72672f612f3339343133322e737667)](https://asciinema.org/a/394132)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~14 days

Total

4

Last Release

1907d ago

Major Versions

0.1.0 → 1.0.02021-02-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/5a8ac105b9098462f56c611f30f21f956e49126ca46de98f85abed08dc7c0f11?d=identicon)[yulia633](/maintainers/yulia633)

---

Top Contributors

[![yulia633](https://avatars.githubusercontent.com/u/72819595?v=4)](https://github.com/yulia633 "yulia633 (110 commits)")

---

Tags

clicli-appphp

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/yulia633-hexlet-project-2/health.svg)

```
[![Health](https://phpackages.com/badges/yulia633-hexlet-project-2/health.svg)](https://phpackages.com/packages/yulia633-hexlet-project-2)
```

###  Alternatives

[drush/drush

Drush is a command line shell and scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.

2.4k57.4M683](/packages/drush-drush)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[phpcr/phpcr-shell

Shell for PHPCR

721.3M8](/packages/phpcr-phpcr-shell)[madewithlove/license-checker

CLI tool to verify allowed licenses for composer dependencies

54449.8k21](/packages/madewithlove-license-checker)[chromatic/usher

A collection of Robo commands for use on Chromatic projects.

13534.3k1](/packages/chromatic-usher)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
