PHPackages                             martines/differences-generator - 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. martines/differences-generator

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

martines/differences-generator
==============================

Utility for comparing two config files and determining their differences

v0.6.0(5y ago)03MITPHP

Since Sep 24Pushed 5y ago1 watchersCompare

[ Source](https://github.com/yarncat/php-project-lvl2)[ Packagist](https://packagist.org/packages/martines/differences-generator)[ RSS](/packages/martines-differences-generator/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependencies (4)Versions (7)Used By (0)

Differences generator
=====================

[](#differences-generator)

[![PHP CI](https://github.com/yarncat/php-project-lvl2/workflows/PHP%20CI/badge.svg)](https://github.com/yarncat/php-project-lvl2/actions)[![Maintainability](https://camo.githubusercontent.com/0301e9638c087d42ee17d25bc8a1f7320f19f4bc3059fd4bc12ffa056d27449b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37303765333230663032343164616137633839622f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/yarncat/php-project-lvl2/maintainability)[![Test Coverage](https://camo.githubusercontent.com/d358c041995fa22bba0bb7a194191dd8cb7f14148ce00ae6d1902bafcf9750cc/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f37303765333230663032343164616137633839622f746573745f636f766572616765)](https://codeclimate.com/github/yarncat/php-project-lvl2/test_coverage)

About
-----

[](#about)

Differences generator - is the CLI utility for comparing two configuration files and determining their differences.

Utility features:

- supported input formats: JSON, YML/YAML;
- report generation/output in JSON, plain (human readable) and stylish (structured) format.

Install
-------

[](#install)

```
$ composer global require martines/differences-generator
```

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

[](#how-it-works)

[Package installation and example of compare of two flat JSON files](https://asciinema.org/a/RsnN7zB0jfCgGlOyCriVHYDiF)

[Example of compare of two flat YAML files](https://asciinema.org/a/lnJMVzU4RKHEWtvSsluPXGJiR)

[Examples of compare of two JSON files with nested structure](https://asciinema.org/a/buhTeUvwmsg5ejOSzonLRlZlG)

[Example of output the result in plain format](https://asciinema.org/a/Sytf8fIe1SRCIKbyZa1MERgTj)

[Example of output the result in JSON format](https://asciinema.org/a/y4YE1eSRoxLWpd5WjPFCjFhxk)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

6

Last Release

2044d ago

### Community

Maintainers

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

---

Top Contributors

[![yarncat](https://avatars.githubusercontent.com/u/62855800?v=4)](https://github.com/yarncat "yarncat (34 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/martines-differences-generator/health.svg)

```
[![Health](https://phpackages.com/badges/martines-differences-generator/health.svg)](https://phpackages.com/packages/martines-differences-generator)
```

###  Alternatives

[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[netgen/content-browser

Netgen Content Browser is a Symfony bundle that provides an interface which selects items from any kind of backend and returns the IDs of selected items back to the calling code.

14112.1k8](/packages/netgen-content-browser)

PHPackages © 2026

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