PHPackages                             alexp11223/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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. alexp11223/gendiff

ActiveProject[Parsing &amp; Serialization](/categories/parsing)

alexp11223/gendiff
==================

hexlet.io project 2

0.6.0(6y ago)012MITPHPCI failing

Since Aug 11Pushed 6y ago1 watchersCompare

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

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

[![Build Status](https://camo.githubusercontent.com/37d913c99fc04de0d0e05847b72d9947cd2ee2f37b1019636a10ce7f4b9f7f22/68747470733a2f2f7472617669732d63692e6f72672f416c65785031313232332f7068702d70726f6a6563742d6c766c322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/AlexP11223/php-project-lvl2)[![Maintainability](https://camo.githubusercontent.com/6612454d320c98cae329b40ca44e2a08570fbcfb345eb11900b8f1b2ba17bf66/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f62656165303138333862316437303238343261632f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/AlexP11223/php-project-lvl2/maintainability)[![Test Coverage](https://camo.githubusercontent.com/337a267198cf2cdb28a88b0ae7e24097b73bb9da4bc0d23cfa51d246f2586eae/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f62656165303138333862316437303238343261632f746573745f636f766572616765)](https://codeclimate.com/github/AlexP11223/php-project-lvl2/test_coverage)

gendiff
=======

[](#gendiff)

Compares two JSON, YAML files and shows the changes between them in different formats: `pretty`, `plain`, `json`.

Installation
------------

[](#installation)

- Install PHP 7.2+ and [Composer](https://getcomposer.org/doc/00-intro.md#globally).
- Run `composer global require alexp11223/gendiff`.
- Make sure that the Composer global bin dir (`composer global config bin-dir --absolute`) is in your `PATH`.

[![asciicast](https://camo.githubusercontent.com/4c4de00802139e566f9b06a4270955ae9efe1e002c1bb7a2fc6cd415bff74b18/68747470733a2f2f61736369696e656d612e6f72672f612f397154624a6b30716a6c4e4838664158776969356e6842395a2e737667)](https://asciinema.org/a/9qTbJk0qjlNH8fAXwii5nhB9Z)

Usage
-----

[](#usage)

```
gendiff [--format ]

```

Examples:

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

```

### pretty

[](#pretty)

Human-readable JSON-like format similar to `diff`.

Flat files:

[![asciicast](https://camo.githubusercontent.com/c9ed51683d7ea4e9a7e9facd7f888c3a9780e539fe733f6962bfa2f2c04a274a/68747470733a2f2f61736369696e656d612e6f72672f612f77314751596a7742596638527731724354786f7357484737612e737667)](https://asciinema.org/a/w1GQYjwBYf8Rw1rCTxosWHG7a)

Nested objects:

[![asciicast](https://camo.githubusercontent.com/6c53ba287740a3b00f1b3eba87daa03805596079a4b2e5d6f66186267ab8b417/68747470733a2f2f61736369696e656d612e6f72672f612f63494f6b4d4564444b7168696a5136663057756f41574e53302e737667)](https://asciinema.org/a/cIOkMEdDKqhijQ6f0WuoAWNS0)

### plain

[](#plain)

Textual description of the changes.

[![asciicast](https://camo.githubusercontent.com/87259b9a1b152aa0f72625f0352c922a8520b25a8c63baf5cb980c2b18a275d5/68747470733a2f2f61736369696e656d612e6f72672f612f6a4734574375757147743454454261464f696b5a57623565392e737667)](https://asciinema.org/a/jG4WCuuqGt4TEBaFOikZWb5e9)

### json

[](#json)

JSON tree describing the changes, intended for automated processing.

[![asciicast](https://camo.githubusercontent.com/27046f95e1ebacb53deea15baa93826f5c80c0b4ae63f50d2d4549c0ff2ee894/68747470733a2f2f61736369696e656d612e6f72672f612f57736f5865694d573641476e61533763674e66567561345a472e737667)](https://asciinema.org/a/WsoXeiMW6AGnaS7cgNfVua4ZG)

###  Health Score

23

—

LowBetter than 26% 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 ~12 days

Total

6

Last Release

2452d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5680466?v=4)[Alex Pantechovskis](/maintainers/AlexP11223)[@AlexP11223](https://github.com/AlexP11223)

---

Top Contributors

[![AlexP11223](https://avatars.githubusercontent.com/u/5680466?v=4)](https://github.com/AlexP11223 "AlexP11223 (52 commits)")

---

Tags

diffhexlethexlet-projectsjsonphpyamldiff

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)[ion-bazan/composer-diff

Compares composer.lock changes and generates Markdown report so you can use it in PR description.

1871.9M3](/packages/ion-bazan-composer-diff)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

101466.4k45](/packages/friendsoftypo3-content-blocks)[ptlis/diff-parser

A parser for unified diff files, returning a hydrated object graph.

29186.8k9](/packages/ptlis-diff-parser)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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