PHPackages                             valentina-vasileva/php-project-lvl2 - 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. valentina-vasileva/php-project-lvl2

ActiveLibrary

valentina-vasileva/php-project-lvl2
===================================

1.4.1(5y ago)19PHP

Since Dec 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Valentina-Vasileva/php-project-lvl2)[ Packagist](https://packagist.org/packages/valentina-vasileva/php-project-lvl2)[ RSS](/packages/valentina-vasileva-php-project-lvl2/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (5)Versions (5)Used By (0)

### Tests and linter status:

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

[![](https://github.com/Valentina-Vasileva/php-project-lvl2/workflows/Tests%20and%20linter/badge.svg)](https://github.com/Valentina-Vasileva/php-project-lvl2/workflows/Tests%20and%20linter/badge.svg)[![](https://camo.githubusercontent.com/4aacc92d87b7b2d343fca6a3c406fff278f165daca77aacbed1352bfd15483fa/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65616139323530356565313631356532323033302f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/Valentina-Vasileva/php-project-lvl2/maintainability)[![](https://camo.githubusercontent.com/89387700fc29ae489105e1e8deea97069ace3d4aad129f494272a1779e9b11ef/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65616139323530356565313631356532323033302f746573745f636f766572616765)](https://codeclimate.com/github/Valentina-Vasileva/php-project-lvl2/test_coverage)

GENDIFF
=======

[](#gendiff)

A PHP package which shows difference (stylish, plain or json format) between two files (yaml, json).

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

[](#installation)

### Via Composer

[](#via-composer)

#### As a CLI:

[](#as-a-cli)

```
$ composer global require valentina-vasileva/php-project-lvl2

```

#### As a library to your project:

[](#as-a-library-to-your-project)

```
$ composer require valentina-vasileva/php-project-lvl2

```

Usage
-----

[](#usage)

#### As a CLI:

[](#as-a-cli-1)

```
$ gendiff [--format ]

```

Also you can show yourself a descriptoin of the CLI:

```
$ gendiff -h
$ gendiff --help

```

#### As a library to your project:

[](#as-a-library-to-your-project-1)

```
use function Differ\Differ\genDiff;

genDiff($filepath1, $filepath2, $formatName = 'stylish');

```

### Examples of using the package

[](#examples-of-using-the-package)

#### plain \*.json files to stylish format:

[](#plain-json-files-to-stylish-format)

[![asciicast](https://camo.githubusercontent.com/b9fc54d994bd8ed92702d319862542f71e2c54188e71f6bb2f81fbae76a3f713/68747470733a2f2f61736369696e656d612e6f72672f612f59315273387a75755630424b30437757706d647732504d6a342e737667)](https://asciinema.org/a/Y1Rs8zuuV0BK0CwWpmdw2PMj4)

#### plain \*.yaml files to stylish format:

[](#plain-yaml-files-to-stylish-format)

[![asciicast](https://camo.githubusercontent.com/d0d58894000fd625f4e4411e4d15df73eeb80ca981b355f7f466853faaf2c5d2/68747470733a2f2f61736369696e656d612e6f72672f612f41365978513878337479684e7a5246686835306b36703149722e737667)](https://asciinema.org/a/A6YxQ8x3tyhNzRFhh50k6p1Ir)

#### complex *.json/*.yaml files to stylish format:

[](#complex-jsonyaml-files-to-stylish-format)

[![asciicast](https://camo.githubusercontent.com/3989e9ac4ed273ba6e8e629119a39bf0275ff2973e3ed8eb8899d72e63127477/68747470733a2f2f61736369696e656d612e6f72672f612f754638414364586b7145796335667257706f376d5450636e6a2e737667)](https://asciinema.org/a/uF8ACdXkqEyc5frWpo7mTPcnj)[![asciicast](https://camo.githubusercontent.com/bdc3ed273ef81428c5f8a303ce4592558c89d052f170d25b39f5e77aa25910b6/68747470733a2f2f61736369696e656d612e6f72672f612f6f615941474c4d3547536a565465783673725a6c53577954562e737667)](https://asciinema.org/a/oaYAGLM5GSjVTex6srZlSWyTV)

#### complex *.json/*.yaml files to plain format:

[](#complex-jsonyaml-files-to-plain-format)

[![asciicast](https://camo.githubusercontent.com/edc88f328e5b752593b7798c0ee181b3abda433bb1d539de1af39fc94ed3988c/68747470733a2f2f61736369696e656d612e6f72672f612f35356f506973697a4c656b6d4f577a46373938494c774b63562e737667)](https://asciinema.org/a/55oPisizLekmOWzF798ILwKcV)

#### complex *.json/*.yaml files to json format:

[](#complex-jsonyaml-files-to-json-format)

[![asciicast](https://camo.githubusercontent.com/5fdba3fa7a1fc04daf87d0d7d210a9a2c46f2418302f9fd7356455da41de21e8/68747470733a2f2f61736369696e656d612e6f72672f612f6d45794a68616a49476453334e4c314f7a48694247745249682e737667)](https://asciinema.org/a/mEyJhajIGdS3NL1OzHiBGtRIh)

###  Health Score

25

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

1895d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/88c9f45c2c812f108631a09eee990425d0d5271a433a4e56e5e617877be6feee?d=identicon)[valentina-vasileva](/maintainers/valentina-vasileva)

---

Top Contributors

[![Valentina-Vasileva](https://avatars.githubusercontent.com/u/66431131?v=4)](https://github.com/Valentina-Vasileva "Valentina-Vasileva (163 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/valentina-vasileva-php-project-lvl2/health.svg)

```
[![Health](https://phpackages.com/badges/valentina-vasileva-php-project-lvl2/health.svg)](https://phpackages.com/packages/valentina-vasileva-php-project-lvl2)
```

PHPackages © 2026

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