PHPackages                             nikitovskij/php-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. [CLI &amp; Console](/categories/cli)
4. /
5. nikitovskij/php-gendiff

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

nikitovskij/php-gendiff
=======================

CLI utility for finding discrepancies in configuration files.

v0.7.2(5y ago)015MITPHP

Since Aug 14Pushed 5y ago2 watchersCompare

[ Source](https://github.com/nikitovskij/php-gendiff)[ Packagist](https://packagist.org/packages/nikitovskij/php-gendiff)[ RSS](/packages/nikitovskij-php-gendiff/feed)WikiDiscussions master Synced today

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

PHP GenDiff
===========

[](#php-gendiff)

[![PHP GenDiff](https://github.com/nikitovskij/php-gendiff/workflows/PHP%20GenDiff/badge.svg?branch=master)](https://github.com/nikitovskij/php-gendiff/actions)[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://camo.githubusercontent.com/39c688bf243eeb6d3bfc529dcf3cb27443613deb696c8fa9f49bccf1e63e3bef/68747470733a2f2f7777772e7265706f7374617475732e6f72672f6261646765732f6c61746573742f6163746976652e737667)](https://www.repostatus.org/#active)[![Maintainability](https://camo.githubusercontent.com/1410e09992dc218ae7d143e218e6507efabaec82f48548a872836e4db6da5b8c/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34396234343365643238393764366261626630382f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/nikitovskij/php-gendiff/maintainability)[![Test Coverage](https://camo.githubusercontent.com/4e7a844dea7c74e1ede1fff614e0875ba528c45093a6f10be50db854caf8234b/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f34396234343365643238393764366261626630382f746573745f636f766572616765)](https://codeclimate.com/github/nikitovskij/php-gendiff/test_coverage)

This is a program that determines the difference between two data structures.

Utility features:

- Support for different input formats: yaml and json
- Generating a report in plain text, stylish and json format

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- [funct library](https://github.com/phpfunct/funct)
- [CLI parser (docopt)](http://docopt.org/)

Setup
-----

[](#setup)

```
$ git clone https://github.com/nikitovskij/php-gendiff.git

$ make install

```

### Composer

[](#composer)

```
$ composer require nikitovskij/php-gendiff

```

Testing
-------

[](#testing)

```
$ make test

```

Lint
----

[](#lint)

```
$ make lint

```

Examples
--------

[](#examples)

#### php-gendiff: json

[](#php-gendiff-json)

```
$ gendiff /path/to/file/first.json /path/to/file/second.json

```

Link to [asciinema](https://asciinema.org/a/bguI3dSGS0Oucj41LmGyWx6aC)

#### php-gendiff: yml

[](#php-gendiff-yml)

```
$ gendiff /path/to/file/first.yml /path/to/file/second.yml

```

Link to [asciinema](https://asciinema.org/a/lQ5YZJ1YkaQFT37Y1NADuiFwh)

#### php-gendiff: pretty format output

[](#php-gendiff-pretty-format-output)

The `pretty` output format is set by default.

```
$ gendiff /path/to/file/first.json /path/to/file/second.json

or

$ gendiff --format pretty /path/to/file/first.json /path/to/file/second.json

```

Link to asciinema:[asciinema](https://asciinema.org/a/ZSWbl6MQVHGAqB3IQzgeONthe)

#### php-gendiff: plain format output

[](#php-gendiff-plain-format-output)

```
$ gendiff --format plain /path/to/file/first.json /path/to/file/second.json

```

Link to [asciinema](https://asciinema.org/a/3gqXaadTxO0lnZWhxAn38RHsk)

#### php-gendiff: json format output

[](#php-gendiff-json-format-output)

```
$ gendiff --format json /path/to/file/first.json /path/to/file/second.json

```

Link to [asciinema](https://asciinema.org/a/rmD6GkIOUQvSiN0P5Z82ZhLbW)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

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

Total

22

Last Release

2013d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17826277?v=4)[Nikita](/maintainers/nikitovskij)[@nikitovskij](https://github.com/nikitovskij)

---

Top Contributors

[![nikitovskij](https://avatars.githubusercontent.com/u/17826277?v=4)](https://github.com/nikitovskij "nikitovskij (64 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  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.4M682](/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)
