PHPackages                             ravilushqa/generate-difference - 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. ravilushqa/generate-difference

ActiveProject

ravilushqa/generate-difference
==============================

0.4.0(8y ago)011[1 issues](https://github.com/ravilushqa/generate-difference/issues)MITPHPPHP &gt;=7.0.0

Since Mar 5Pushed 4y agoCompare

[ Source](https://github.com/ravilushqa/generate-difference)[ Packagist](https://packagist.org/packages/ravilushqa/generate-difference)[ RSS](/packages/ravilushqa-generate-difference/feed)WikiDiscussions master Synced today

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

project-lvl2-s197
=================

[](#project-lvl2-s197)

[![Build Status](https://camo.githubusercontent.com/f240bb68f748f9f93a13ba897f6838c1c7203d49f5018a25e001549f66b33ded/68747470733a2f2f7472617669732d63692e6f72672f726176696c75736871612f67656e65726174652d646966666572656e63652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ravilushqa/generate-difference)[![Maintainability](https://camo.githubusercontent.com/df2d164bc1a1506084d29804b22f49895e3e863069596a8859647f6d48bdc421/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65643437333564643035393035383332393864622f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/ravilushqa/project-lvl2-s197/maintainability)[![Test Coverage](https://camo.githubusercontent.com/aa585bf767724b02ce4ab17579bd5cb11032dd80edd9b2d3c19e0fcf2716dd61/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65643437333564643035393035383332393864622f746573745f636f766572616765)](https://codeclimate.com/github/ravilushqa/project-lvl2-s197/test_coverage)

This project can generate difference between two files.

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

[](#installation)

1. For CLI

```
composer global require ravilushqa/generate-difference
```

2. In your project

```
composer require ravilushqa/generate-difference
```

Usage
-----

[](#usage)

### 1. For CLI

[](#1-for-cli)

```
Usage:
  gendiff (-h|--help)
  gendiff [--format ]

Options:
  -h --help                     Show this screen
  --format                 Report format [default: pretty]
```

#### 2. For project

[](#2-for-project)

```
//todo
```

Supported formats
-----------------

[](#supported-formats)

### 1. Formats of input files

[](#1-formats-of-input-files)

- yml
- json

### 2. Formats of report

[](#2-formats-of-report)

- plain
- pretty
- json

Examples output
---------------

[](#examples-output)

### Input files

[](#input-files)

**before.json**

```
{
  "common": {
    "setting1": "Value 1",
    "setting2": "200",
    "setting3": true,
    "setting6": {
      "key": "value"
    }
  },
  "group1": {
    "baz": "bas",
    "foo": "bar"
  },
  "group2": {
    "abc": "12345"
  }
}
```

**after.json**

```
{
  "common": {
    "setting1": "Value 1",
    "setting3": true,
    "setting4": "blah blah",
    "setting5": {
      "key5": "value5"
    }
  },

  "group1": {
    "foo": "bar",
    "baz": "bars"
  },

  "group3": {
    "fee": "100500"
  }
}
```

### Plain

[](#plain)

```
Setting "common.setting2" deleted.
Setting "common.setting4" added with value "blah blah".
Setting "group1.baz" changed from "bas" to "bars".
Section "group2" deleted.

```

### Pretty

[](#pretty)

```
{
    common: {
        setting1: Value 1
      - setting2: 200
        setting3: true
      - setting6: {
            key: value
        }
      + setting4: blah blah
      + setting5: {
            key5: value5
        }
    }
    group1: {
      - baz: bas
      + baz: bars
        foo: bar
    }
  - group2: {
        abc: 12345
    }
  + group3: {
        fee: 100500
    }
}

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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

9

Last Release

2982d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ad42d02167bdfaf6c399d486c6c34e5c1baa4bd31de7656f63a489a92b992eb?d=identicon)[ravilushqa](/maintainers/ravilushqa)

---

Top Contributors

[![ravilushqa](https://avatars.githubusercontent.com/u/18125561?v=4)](https://github.com/ravilushqa "ravilushqa (18 commits)")[![renovate-bot](https://avatars.githubusercontent.com/u/25180681?v=4)](https://github.com/renovate-bot "renovate-bot (3 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ravilushqa-generate-difference/health.svg)

```
[![Health](https://phpackages.com/badges/ravilushqa-generate-difference/health.svg)](https://phpackages.com/packages/ravilushqa-generate-difference)
```

PHPackages © 2026

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