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

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

alshad/gendiff
==============

The second project in the profession of PHP training platform Hexlet

v0.3.6(6y ago)012MITPHPCI failing

Since Feb 25Pushed 6y ago1 watchersCompare

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

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

php-project-lvl2
================

[](#php-project-lvl2)

[![Maintainability](https://camo.githubusercontent.com/d4e8ac2480fb24d16318a468b66e84e383a47a7e4a0dbe56e2a0bc656a72acea/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f64323134343563336331343938336433653762652f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/AlexeyShobanov/php-project-lvl2/maintainability)[![Test Coverage](https://camo.githubusercontent.com/7a836e725056c4a85e362875148c276b738328cace6be76a31696463ac999acf/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f64323134343563336331343938336433653762652f746573745f636f766572616765)](https://codeclimate.com/github/AlexeyShobanov/php-project-lvl2/test_coverage)[![PHP CI](https://github.com/AlexeyShobanov/php-project-lvl2/workflows/PHP%20CI/badge.svg)](https://github.com/AlexeyShobanov/php-project-lvl2/actions)

Install
-------

[](#install)

$ composer global require alshad/gendiff

CLI for Generate diff
---------------------

[](#cli-for-generate-diff)

### Help and Version

[](#help-and-version)

$ gendiff -h

$ gendiff -v

Compare 2 files
---------------

[](#compare-2-files)

### Generate diff for flat .json files (files are in the working directory)

[](#generate-diff-for-flat-json-files-files-are-in-the-working-directory)

$gendiff file1.json file2.json.

### Generate diff for flat .yaml files (files are in the working directory)

[](#generate-diff-for-flat-yaml-files-files-are-in-the-working-directory)

$gendiff file1.yaml file2.yaml

### Generate diff for recursive .json files (files are in the working directory)

[](#generate-diff-for-recursive-json-files-files-are-in-the-working-directory)

$gendiff file1.json file2.json

### Generate diff for recursive .yaml files (files are in the working directory)

[](#generate-diff-for-recursive-yaml-files-files-are-in-the-working-directory)

$gendiff file1.yaml file2.yaml

### Generate diff for recursive .json files (files are in the working directory) and output in format "plain"

[](#generate-diff-for-recursive-json-files-files-are-in-the-working-directory-and-output-in-format-plain)

$gendiff --format plain file1.json file2.json

### Generate diff for recursive .json files (files are in the working directory) and output in format "json"

[](#generate-diff-for-recursive-json-files-files-are-in-the-working-directory-and-output-in-format-json)

$gendiff --format json file1.json file2.json

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Total

10

Last Release

2253d ago

### Community

Maintainers

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

---

Top Contributors

[![AlexeyShobanov](https://avatars.githubusercontent.com/u/11249101?v=4)](https://github.com/AlexeyShobanov "AlexeyShobanov (58 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

PHPackages © 2026

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