PHPackages                             yavictor/php\_project2 - 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. [CLI &amp; Console](/categories/cli)
4. /
5. yavictor/php\_project2

ActiveLibrary[CLI &amp; Console](/categories/cli)

yavictor/php\_project2
======================

cli config difference generator

02PHP

Since Oct 6Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yavictor/php-project-lvl2)[ Packagist](https://packagist.org/packages/yavictor/php_project2)[ RSS](/packages/yavictor-php-project2/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

### Hexlet tests and linter status:

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

[![hexlet-check](https://github.com/yavictor/php-project-lvl2/actions/workflows/hexlet-check.yml/badge.svg)](https://github.com/yavictor/php-project-lvl2/actions/workflows/hexlet-check.yml)[![Code Climate](https://camo.githubusercontent.com/c9be1d697de0d9a1342d3f9ff12e7bd6a1cd2a94fcf3eb53dfa2533fedfe1280/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7961766963746f722f7068702d70726f6a6563742d6c766c322f6261646765732f6770612e737667)](https://codeclimate.com/github/yavictor/php-project-lvl2)[![issue Count](https://camo.githubusercontent.com/296bc3d32e89a9415d7e9f7444d9832ea97b368f940534ced53b1befed80ec69/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7961766963746f722f7068702d70726f6a6563742d6c766c322f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/yavictor/php-project-lvl2/issues)[![Test Coverage](https://camo.githubusercontent.com/9aafc0996be850b73203a87b7b172093885a51249c2103f9a3ce8dd7d7132eb4/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30333065366463353633323333663463336530302f746573745f636f766572616765)](https://codeclimate.com/github/yavictor/php-project-lvl2/test_coverage)

### gendiff:

[](#gendiff)

Command line interface util that can show difference between two configuration files in json and yaml format. Also it can show only parameters that chaged in configuration and generate json result of both configs.

### Install

[](#install)

For global install:

> composer global require yavictor/php\_project2

For local use:

> composer global require yavictor/php\_project2

Then istall depandencies:

> make install

### Compare two JSONs

[](#compare-two-jsons)

As "stylish" is default output:

> gendiff first.json second.json

same as

> gendiff --format stylish first.json second.json

### Compare two YML

[](#compare-two-yml)

> gendiff --format stylish first.yml second.yml

### Plain output

[](#plain-output)

> gendiff --format plain first second

### Json output

[](#json-output)

> gendiff --format json first second

[![asciicast](https://camo.githubusercontent.com/b92c715f12cfea543951b7cee6c82ccb862663a3396e65e49d8ea78fc696d17e/68747470733a2f2f61736369696e656d612e6f72672f612f4a6555566545383954685376716c50483138544d676b646b362e737667)](https://asciinema.org/a/JeUVeE89ThSvqlPH18TMgkdk6)

Show difference between two 'yml' files
=======================================

[](#show-difference-between-two-yml-files)

[![asciicast](https://camo.githubusercontent.com/f2c54ffc69c69c22f9e197a20855d9612aca8ecec531f24d4b0a620b200611a7/68747470733a2f2f61736369696e656d612e6f72672f612f7a6d5a504e357a6b6e59345738716767376e633638634f47472e737667)](https://asciinema.org/a/zmZPN5zknY4W8qgg7nc68cOGG)

Show difference between two 'ini' files
=======================================

[](#show-difference-between-two-ini-files)

[![asciicast](https://camo.githubusercontent.com/cd13ad9222acae8f0406cabd2da9679be437d82695cb17aab4ab09d002baead9/68747470733a2f2f61736369696e656d612e6f72672f612f3874796e6b744953344d6550335a58674f30743346303476612e737667)](https://asciinema.org/a/8tynktIS4MeP3ZXgO0t3F04va)

Show difference between two 'json' nested files, with default stylish output
============================================================================

[](#show-difference-between-two-json-nested-files-with-default-stylish-output)

[![asciicast](https://camo.githubusercontent.com/2ea520f743231c12225f9f834af77ac72ee55fddf6077bb2c62d16fe8bb4fb28/68747470733a2f2f61736369696e656d612e6f72672f612f634c514a467356567a5975726e6d39386273575051677079592e737667)](https://asciinema.org/a/cLQJFsVVzYurnm98bsWPQgpyY)

Show difference between same 'json' nested files, with plain output
===================================================================

[](#show-difference-between-same-json-nested-files-with-plain-output)

[![asciicast](https://camo.githubusercontent.com/e1b03b266a5a6b20564e2730ad62bdcf195b1ad7463b113a8e49d8f6051049e7/68747470733a2f2f61736369696e656d612e6f72672f612f6231726f31776e5851684f51773868436971416f32333755582e737667)](https://asciinema.org/a/b1ro1wnXQhOQw8hCiqAo237UX)

Show difference between same 'json' nested files, with json output, showing internal data representation
========================================================================================================

[](#show-difference-between-same-json-nested-files-with-json-output-showing-internal-data-representation)

[![asciicast](https://camo.githubusercontent.com/40050dadad126f22e3bbcbb84b0c54738f5fab8e826180fd88d1b0644b67e5d8/68747470733a2f2f61736369696e656d612e6f72672f612f464145577332737248374633715068633274617a5455726b322e737667)](https://asciinema.org/a/FAEWs2srH7F3qPhc2tazTUrk2)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![yavictor](https://avatars.githubusercontent.com/u/31189356?v=4)](https://github.com/yavictor "yavictor (53 commits)")

### Embed Badge

![Health badge](/badges/yavictor-php-project2/health.svg)

```
[![Health](https://phpackages.com/badges/yavictor-php-project2/health.svg)](https://phpackages.com/packages/yavictor-php-project2)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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