PHPackages                             vkzhuk/diff\_calc - 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. vkzhuk/diff\_calc

ActiveProject

vkzhuk/diff\_calc
=================

1.0(7y ago)011MITPHPPHP 7.2.\*

Since Aug 24Pushed 7y agoCompare

[ Source](https://github.com/vkzhuk/project-lvl2-s313)[ Packagist](https://packagist.org/packages/vkzhuk/diff_calc)[ RSS](/packages/vkzhuk-diff-calc/feed)WikiDiscussions master Synced 2mo ago

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

[![Maintainability](https://camo.githubusercontent.com/184b16f98b939ab28193ac79e757b3a8139a4a21cc1b7b0577bf0314973a64d6/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39613466666465396239613338356365313532622f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/vkzhuk/Difference-Generator/maintainability)[![Build Status](https://camo.githubusercontent.com/94ef59c97222f53f044496506fafec9d0bd4809319133c82d476ee86ea16c999/68747470733a2f2f7472617669732d63692e6f72672f766b7a68756b2f446966666572656e63652d47656e657261746f722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vkzhuk/Difference-Generator)

\#Difference Generator

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

[](#installation)

#### - As a Tool

[](#--as-a-tool)

```
composer create-project vkzhuk/diff_calc

```

#### - As a Library

[](#--as-a-library)

```
composer require vkzhuk/diff_calc

```

Usage Pattern
-------------

[](#usage-pattern)

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

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

```

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

[](#supported-formats)

### 1. Formats of input files

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

- json
- yml

### 2. Formats of report

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

- changeTree
- plain
- 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"
  }
}

```

### Change Tree

[](#change-tree)

```
{
    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
    }
}

```

### 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.

```

\###Example of work [![asciicast](https://camo.githubusercontent.com/fc83618ef5482473ab4deef1ba1f2a8f2763987b0fe96ffc97ecfd067c2afee8/68747470733a2f2f61736369696e656d612e6f72672f612f3139383437362e706e67)](https://asciinema.org/a/198476)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Total

3

Last Release

2812d ago

Major Versions

0.9 → 1.02018-08-28

### Community

Maintainers

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

---

Top Contributors

[![vikzh](https://avatars.githubusercontent.com/u/22195324?v=4)](https://github.com/vikzh "vikzh (16 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/vkzhuk-diff-calc/health.svg)

```
[![Health](https://phpackages.com/badges/vkzhuk-diff-calc/health.svg)](https://phpackages.com/packages/vkzhuk-diff-calc)
```

PHPackages © 2026

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