PHPackages                             malcom/gendiff - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. malcom/gendiff

ActiveProject[Utility &amp; Helpers](/categories/utility)

malcom/gendiff
==============

gendiff

v1.2.1(6y ago)012MITPHPCI failing

Since Dec 15Pushed 6y agoCompare

[ Source](https://github.com/Malcom1986/php-project-lvl2)[ Packagist](https://packagist.org/packages/malcom/gendiff)[ RSS](/packages/malcom-gendiff/feed)WikiDiscussions master Synced 6d ago

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

Differece calculator
====================

[](#differece-calculator)

Hexlet PHP project - level 2
----------------------------

[](#hexlet-php-project---level-2)

### This repository contains Difference Calculator - utility for finding differences in configuration files

[](#this-repository-contains-difference-calculator---utility-for-finding-differences-in-configuration-files)

---

[![Maintainability](https://camo.githubusercontent.com/c85bf4bc49fe0e2f70393c9c853606fb02951945115507fe0d1743779be7d8f8/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f62373737353466383566303266623763646130622f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Malcom1986/php-project-lvl2/maintainability)[![Test Coverage](https://camo.githubusercontent.com/58f7405345f1c3e47fcb687d866f4caf5025e2a691a872204b37164e5e5c7141/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f62373737353466383566303266623763646130622f746573745f636f766572616765)](https://codeclimate.com/github/Malcom1986/php-project-lvl2/test_coverage)[![Build Status](https://camo.githubusercontent.com/2823a98e57b4c610866f2e9e5e049c64ddaae3f24419fa8be5b93e1b024700fe/68747470733a2f2f7472617669732d63692e6f72672f4d616c636f6d313938362f7068702d70726f6a6563742d6c766c322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Malcom1986/php-project-lvl2)

---

### Install:

[](#install)

`$ composer global require malcom/gendiff`

---

### Usage:

[](#usage)

```
      gendiff (-h|--help)
      gendiff (-v|--version)
      gendiff [--format ]

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

```

### Gendiff can works with different configuration files formats:

[](#gendiff-can-works-with-different-configuration-files-formats)

1. JSON format

`$ gendiff before.json after.json`

[![asciicast](https://camo.githubusercontent.com/a2fea199de98772663bbf2d62f3615982208e85cea7bdfcb60ea89cfed4e4a80/68747470733a2f2f61736369696e656d612e6f72672f612f395855575637754647337266714d4b6457504c6a4b373576672e737667)](https://asciinema.org/a/9XUWV7uFG3rfqMKdWPLjK75vg)

2. YAML format

`$ gendiff before.yaml after.yaml`

[![asciicast](https://camo.githubusercontent.com/936da68b7b1acc1a979868627d7207a8ca9564ce7c430ae90b7dc0ba3a4522e8/68747470733a2f2f61736369696e656d612e6f72672f612f7a674f54394b67495850486238316a4330654d4e6b714631312e737667)](https://asciinema.org/a/zgOT9KgIXPHb81jC0eMNkqF11)

\###Gendiff can works with recursive configuration files:

[![asciicast](https://camo.githubusercontent.com/a3db94c43137f1dab7d24b2f4a3bc2449208aee6914f4a2ebb83dcfb86cbbc9c/68747470733a2f2f61736369696e656d612e6f72672f612f54346173337a4b6979704970434c4e6a5851676d46687137362e737667)](https://asciinema.org/a/T4as3zKiypIpCLNjXQgmFhq76)

### Gendiff generates output data in different formats:

[](#gendiff-generates-output-data-in-different-formats)

1. Pretty format (default)
2. Text format

`gendiff --format plain before.yaml after.yaml`

[![asciicast](https://camo.githubusercontent.com/aad1aca380c3070331c5afe5fd7eae722520e3b33d0c38e49b69f6a86695e27e/68747470733a2f2f61736369696e656d612e6f72672f612f56716e44774e5a52475949335345673856324b6149386d62492e737667)](https://asciinema.org/a/VqnDwNZRGYI3SEg8V2KaI8mbI)

3. JSON format

`gendiff --format json before.yaml after.yaml`

[![asciicast](https://camo.githubusercontent.com/33be77f4f7af7d238781f51535fe25dc15cbe504e86a0e12402f752303ae1ab0/68747470733a2f2f61736369696e656d612e6f72672f612f5052326672794b336872374c4d6b59724661476b69486a63762e737667)](https://asciinema.org/a/PR2fryK3hr7LMkYrFaGkiHjcv)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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 ~6 days

Recently: every ~11 days

Total

9

Last Release

2297d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/124141?v=4)[Marcin Malich](/maintainers/Malcom)[@malcom](https://github.com/malcom)

---

Top Contributors

[![Malcom1986](https://avatars.githubusercontent.com/u/46455978?v=4)](https://github.com/Malcom1986 "Malcom1986 (35 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/malcom-gendiff/health.svg)

```
[![Health](https://phpackages.com/badges/malcom-gendiff/health.svg)](https://phpackages.com/packages/malcom-gendiff)
```

PHPackages © 2026

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