PHPackages                             dekabruga/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. dekabruga/gendiff

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

dekabruga/gendiff
=================

0.3(6y ago)03[1 PRs](https://github.com/rentery/php-project-lvl2/pulls)PHPCI passing

Since Apr 30Pushed 4w ago1 watchersCompare

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

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

### Gendiff

[](#gendiff)

Gendiff is a utility for comparing two configuration files. Supported formats: json, yaml. The result of comparing can be displayed in different formats: pretty, plain or json.

[![Maintainability](https://camo.githubusercontent.com/0c016e74c76fb7bbb89afba1ba84c1c4519c5641b3cb778efa7796c1460d608d/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39386561326637656237663661343631333038362f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/rentery/php-project-lvl2/maintainability)

[![Test Coverage](https://camo.githubusercontent.com/f975d709417958da42074505a1c96cad2aafa63822380eaf8752f5d71ebd67f5/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39386561326637656237663661343631333038362f746573745f636f766572616765)](https://codeclimate.com/github/rentery/php-project-lvl2/test_coverage)

[![PHP CI](https://github.com/rentery/php-project-lvl2/workflows/PHP%20CI/badge.svg)](https://github.com/rentery/php-project-lvl2/workflows/PHP%20CI/badge.svg)

How to install
--------------

[](#how-to-install)

1. Installation with composer as a cli utility:

Enter the command `composer global require dekabruga/php-project-lvl1` to install

Use command `gendiff [--format ]  ` for compare files

2. You also can use this utility as library:

Enter the command in your project `composer require dekabruga/php-project-lvl1` to install

And import function `use Differ/Differ/genDiff;`

How it works
------------

[](#how-it-works)

You can compare two json config files with plain structure

[![asciicast](https://camo.githubusercontent.com/a8a22d104ef222bf30dc7b7d53cd56d3639da82ae5782e355adfc653825cb495/68747470733a2f2f61736369696e656d612e6f72672f612f476733314b557679555a3345385145696535704a636d33346f2e737667)](https://asciinema.org/a/Gg31KUvyUZ3E8QEie5pJcm34o)

You can compare two yaml config files with plain structure

[![asciicast](https://camo.githubusercontent.com/575d790f9f5af7cfc408a01708422251e41f99b44c7022e7b253f6bb449fa8bd/68747470733a2f2f61736369696e656d612e6f72672f612f743177416c434e393358454473646e4e316c327767326769792e737667)](https://asciinema.org/a/t1wAlCN93XEDsdnN1l2wg2giy)

You can compare two yaml or json config files with nested structure

[![asciicast](https://camo.githubusercontent.com/33379f423188cc0d9fd9e8e2b6a17e61787c51902f6091640fb418a89e5088e4/68747470733a2f2f61736369696e656d612e6f72672f612f6f79526132516a58434a30684831734731705855574f6d34542e737667)](https://asciinema.org/a/oyRa2QjXCJ0hH1sG1pXUWOm4T)

You can use `--format plain` for plain data output

[![asciicast](https://camo.githubusercontent.com/3387a9706fe733f314b5d3b77ae57f9bb9de965f60e27182d0f6e2074bf66e4b/68747470733a2f2f61736369696e656d612e6f72672f612f656438726c7a344c576a576f68424c303165726b67696c36452e737667)](https://asciinema.org/a/ed8rlz4LWjWohBL01erkgil6E)

Finally, you can use `--format json` for json data output

[![asciicast](https://camo.githubusercontent.com/cdc8b1b9a99ad9da3927bad09e14dd20681352b92278cf110de90cacdff44665/68747470733a2f2f61736369696e656d612e6f72672f612f706f59766c773862747434474f4e5348556468664a307751702e737667)](https://asciinema.org/a/poYvlw8btt4GONSHUdhfJ0wQp)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance62

Regular maintenance activity

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

2206d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad4cb20e34814f247fb97b4dd77709bf14f8699c322fac2f68ab29a62de3e29d?d=identicon)[rentery](/maintainers/rentery)

---

Top Contributors

[![rentery](https://avatars.githubusercontent.com/u/47029758?v=4)](https://github.com/rentery "rentery (59 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

PHPackages © 2026

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