PHPackages                             arkadiy/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. arkadiy/php-project2

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

arkadiy/php-project2
====================

A command-line tool educational project

0.1.3(6y ago)010PHP

Since Jun 24Pushed 6y agoCompare

[ Source](https://github.com/arkadiy93/php-project-lvl2)[ Packagist](https://packagist.org/packages/arkadiy/php-project2)[ RSS](/packages/arkadiy-php-project2/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (3)Dependencies (6)Versions (4)Used By (0)

GenDiff
=======

[](#gendiff)

[![Maintainability](https://camo.githubusercontent.com/8284731084d9b27d92f089ff9e93f2a1087d04df3d99a4a9de0366bb853f58e0/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f64333135656631376237356361386564613763332f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/arkadiy93/php-project-lvl2/maintainability)[![Build Status](https://camo.githubusercontent.com/8e3a1a93f10f2aec2c1b190a15fa6b7d04936aefc71484b414fab133e0af5412/68747470733a2f2f7472617669732d63692e6f72672f61726b6164697939332f7068702d70726f6a6563742d6c766c322e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/arkadiy93/php-project-lvl2)

### Description

[](#description)

A command line utility for generating differences between two configurational files. Supporting file formats:

- json
- yaml

This is an educational project for hexlet.

### Installation

[](#installation)

In order to install and run the utility:

```
composer global require arkadiy/php-project2

```

[![asciicast](https://camo.githubusercontent.com/f239b91dcab94532140c10c38212d9328da97ce6a5ff990883e370df2e3d4109/68747470733a2f2f61736369696e656d612e6f72672f612f3235333238322e737667)](https://asciinema.org/a/253282)

### Usage

[](#usage)

```
gendiff -h

Generate diff

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

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

```

It is possible to run the utility directly in the terminal with the command:

```
composer global require arkadiy/php-project2

```

It is possible to use the code as a library as well:

```
use function \Gendiff\genDiff;

```

### Supported config formats

[](#supported-config-formats)

This util supports two different configuration files formats:

- json
- yaml

#### JSON

[](#json)

[![asciicast](https://camo.githubusercontent.com/2d9a33fa5ec35fa538f4d5182a2416d02d3156f2ce4e34637d45e361e34989eb/68747470733a2f2f61736369696e656d612e6f72672f612f6b79746770716c6643584e304776664e6e4c7a684c6575486c2e737667)](https://asciinema.org/a/kytgpqlfCXN0GvfNnLzhLeuHl)

#### YAML

[](#yaml)

[![asciicast](https://camo.githubusercontent.com/d714b8ec60ab2d3a4c99e2fbe58f4bdde8bcd2c157599e0881a4331bd1173f87/68747470733a2f2f61736369696e656d612e6f72672f612f5a5a64386b4b574a745458516c304e36686f5352546f674d702e737667)](https://asciinema.org/a/ZZd8kKWJtTXQl0N6hoSRTogMp)

###### Deep nested configurational files

[](#deep-nested-configurational-files)

The util is able to read config files with deep nesting also.

[![asciicast](https://camo.githubusercontent.com/537e076f98d91d15dedf4c3dce55c7dd4acf11442815faa88a2ba05c4aa81f96/68747470733a2f2f61736369696e656d612e6f72672f612f57414e6a7376334d674c4765694d7a64594f46656874424a472e737667)](https://asciinema.org/a/WANjsv3MgLGeiMzdYOFehtBJG)

### Output formats

[](#output-formats)

The output formats are 3:

- pretty (default format, example is shown in previous videp)
- plain
- json

#### PLAIN FORMAT

[](#plain-format)

[![asciicast](https://camo.githubusercontent.com/978c5d6d0ae07c86af60293f90ec12a4a1970871cd5e0fece916bdfc883208ae/68747470733a2f2f61736369696e656d612e6f72672f612f3235373235312e737667)](https://asciinema.org/a/257251)

#### JSON FORMAT

[](#json-format)

[![asciicast](https://camo.githubusercontent.com/6b16de8461e868d56f7f7d353b042a0ca0b5ca3c8d540cf33bb1f839071dd8da/68747470733a2f2f61736369696e656d612e6f72672f612f3235373235332e737667)](https://asciinema.org/a/257253)

### Tests

[](#tests)

This project includes unit testing. It is possible to run the tests with:

```
make test

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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

Total

4

Last Release

2498d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/06995b6a5b35b48ed36a92238e44f83aa61aa68ff61bfae1be7c2dceb6fe4f41?d=identicon)[Arkadiy](/maintainers/Arkadiy)

---

Top Contributors

[![arkadiy93](https://avatars.githubusercontent.com/u/23264453?v=4)](https://github.com/arkadiy93 "arkadiy93 (38 commits)")

---

Tags

hexlet projectgendiff project

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[crazywhalecc/static-php-cli

Build single static PHP binary, with PHP project together, with popular extensions included.

1.8k13.9k](/packages/crazywhalecc-static-php-cli)[chromatic/usher

A collection of Robo commands for use on Chromatic projects.

13534.3k1](/packages/chromatic-usher)

PHPackages © 2026

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