PHPackages                             damir/difference-calculator - 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. damir/difference-calculator

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

damir/difference-calculator
===========================

My second project on php

020PHPCI failing

Since Apr 8Pushed 5y agoCompare

[ Source](https://github.com/DAS27/difference-calculator)[ Packagist](https://packagist.org/packages/damir/difference-calculator)[ RSS](/packages/damir-difference-calculator/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

different-caluculator
=====================

[](#different-caluculator)

[![PHP CI](https://github.com/DAS27/difference-calculator/workflows/PHP%20CI/badge.svg)](https://github.com/DAS27/difference-calculator/workflows/PHP%20CI/badge.svg)[![Maintainability](https://camo.githubusercontent.com/1ccc905fb19312bf7dd8a12167becf55568b24b5069569e5b7a87ad8d46a21b0/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39666430396235353562363033623964393734372f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/DAS27/php-project-lvl2/maintainability)[![Test Coverage](https://camo.githubusercontent.com/f0bc24ead5dbe093d97a5918e611a1f0468ca876d2638292a62c91a8115a5baf/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f39666430396235353562363033623964393734372f746573745f636f766572616765)](https://codeclimate.com/github/DAS27/php-project-lvl2/test_coverage)

### Installation

[](#installation)

Use [Composer](https://getcomposer.org/)

```
$ composer global require damir/difference-calculator:dev-master
```

Setup
-----

[](#setup)

```
$ git clone https://github.com/DAS27/difference-calculator.git

$ make install
```

Run tests
---------

[](#run-tests)

```
$ make test
```

### Usage

[](#usage)

Execute in bash:

```
gendiff [--format ]

```

Format is optional and have `pretty` output format by default. So you don't need to specify a format and can execute like this:

```
gendiff

```

or explicitly specifying the desired format:

```
gendiff --format pretty

```

[![asciicast](https://camo.githubusercontent.com/eebbad866f10ec1245ed3b4c659730456288bf7b28c9bdf8f147a81c9fd43643/68747470733a2f2f61736369696e656d612e6f72672f612f57425059453049455251666f68305a36736c53435246496f4d2e737667)](https://asciinema.org/a/WBPYE0IERQfoh0Z6slSCRFIoM)

```
gendiff --format plain

```

[![asciicast](https://camo.githubusercontent.com/6369f542a7d79d457d47712a9388d5ccda60a8bd7f60dee5e22495bd154c9774/68747470733a2f2f61736369696e656d612e6f72672f612f4f47584e466d37694d326f36486f79613972743969547a48692e737667)](https://asciinema.org/a/OGXNFm7iM2o6Hoya9rt9iTzHi)

```
gendiff --format json

```

[![asciicast](https://camo.githubusercontent.com/8d8c91c2d89b2d68065b751b2e0d8aff7e23970f9d22dec4c9bad34eb5f42ed5/68747470733a2f2f61736369696e656d612e6f72672f612f745a6d7a5761365432376f7a70456c4c517744664a4a3044732e737667)](https://asciinema.org/a/tZmzWa6T27ozpElLQwDfJJ0Ds)

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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/35865346?v=4)[Damir](/maintainers/DAS27)[@DAS27](https://github.com/DAS27)

---

Top Contributors

[![DAS27](https://avatars.githubusercontent.com/u/35865346?v=4)](https://github.com/DAS27 "DAS27 (110 commits)")

### Embed Badge

![Health badge](/badges/damir-difference-calculator/health.svg)

```
[![Health](https://phpackages.com/badges/damir-difference-calculator/health.svg)](https://phpackages.com/packages/damir-difference-calculator)
```

###  Alternatives

[magepal/magento2-googletagmanager

Google Tag Manager (GTM) for Magento 2 with Advance Data Layer

2691.6M5](/packages/magepal-magento2-googletagmanager)[shivas/versioning-bundle

Symfony application versioning, simple console command to manage version (with providers e.g. git tag) of your application using Semantic Versioning 2.0.0 recommendations

1111.3M1](/packages/shivas-versioning-bundle)

PHPackages © 2026

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