PHPackages                             haks/code - 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. haks/code

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

haks/code
=========

Difference Calculator at PHP

v1.0.0(4y ago)04MITPHP

Since Jan 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/MaksHaks/php-project-lvl2)[ Packagist](https://packagist.org/packages/haks/code)[ RSS](/packages/haks-code/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

### Hexlet tests and linter status:

[](#hexlet-tests-and-linter-status)

[![Actions Status](https://github.com/MaksHaks/php-project-lvl2/workflows/hexlet-check/badge.svg)](https://github.com/MaksHaks/php-project-lvl2/actions)[![linter & Test Status](https://github.com/MaksHaks/php-project-lvl2/actions/workflows/github-actions.yml/badge.svg)](https://github.com/MaksHaks/php-project-lvl2/actions)[![](https://camo.githubusercontent.com/0f477813edd0024240d2b55b57ed7f9e6232fcc0d168475ef49e053d843b2851/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36636463646331653135643534643565303434372f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/MaksHaks/php-project-lvl2/maintainability)[![](https://camo.githubusercontent.com/0211eabdf251aaa765c4e5633c1b7fcc4dc22310e8396686af3c44c5c83f597a/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f36636463646331653135643534643565303434372f746573745f636f766572616765)](https://codeclimate.com/github/MaksHaks/php-project-lvl2/test_coverage)

Description
-----------

[](#description)

The Difference Calculator is a console solution for finding differences between two files using PHP. Support for JSON, YML and YAML formats is provided. The solution supports various formats for outputting differences (Stylish, Plain and Json). The operation logic is based on recursive file comparison and takes into account the types and structure of the compared data.

Setup
-----

[](#setup)

```
git clone https://github.com/MaksHaks/php-project-lvl2.git
make install
```

Calculate Differences
---------------------

[](#calculate-differences)

Calculate difference between file1 and file2:

```
./bin/gendiff --format
```

For more information

```
./bin/gendiff -h
```

[![asciicast](https://camo.githubusercontent.com/93e011cc119f3bc8514c9ef7bf70990b836e288deb59980be1890f86247c08fd/68747470733a2f2f61736369696e656d612e6f72672f612f724e674a574f754d5271334a704a6c623853475175535375612e737667)](https://asciinema.org/a/rNgJWOuMRq3JpJlb8SGQuSSua)[![asciicast](https://camo.githubusercontent.com/96b4a4f2f1952ade37adff12c2de4c90c64b7af22ef9cae0da669b7b7a515160/68747470733a2f2f61736369696e656d612e6f72672f612f4e353365616b5a6b47464774536477757834463142473669532e737667)](https://asciinema.org/a/N53eakZkGFGtSdwux4F1BG6iS)

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

Unknown

Total

1

Last Release

1574d ago

### Community

Maintainers

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

---

Top Contributors

[![HaksMaks](https://avatars.githubusercontent.com/u/246759953?v=4)](https://github.com/HaksMaks "HaksMaks (78 commits)")[![MaksHaks](https://avatars.githubusercontent.com/u/90644331?v=4)](https://github.com/MaksHaks "MaksHaks (15 commits)")

---

Tags

compare-filesconsole-applicationphp8terminal-based

### Embed Badge

![Health badge](/badges/haks-code/health.svg)

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

###  Alternatives

[wapmorgan/php-code-analyzer

A program that finds usage of different non-built-in extensions in your php code.

96143.2k4](/packages/wapmorgan-php-code-analyzer)

PHPackages © 2026

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