PHPackages                             kduma/comparator - 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. kduma/comparator

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

kduma/comparator
================

Batch compare multiple files

2.0.0(3y ago)122GPL-3.0PHPPHP &gt;=8.1

Since Jan 23Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/kduma-OSS/CLI-comparator)[ Packagist](https://packagist.org/packages/kduma/comparator)[ RSS](/packages/kduma-comparator/feed)WikiDiscussions master Synced 3w ago

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

KDuma/Comparator
================

[](#kdumacomparator)

[![Latest Stable Version](https://camo.githubusercontent.com/28ed2fae91bd9cf8c75be935f301359f6aa7424f9471f6a8b458ae414f7e7f1e/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f636f6d70617261746f722f762f737461626c652e737667)](https://packagist.org/packages/kduma/comparator)[![Total Downloads](https://camo.githubusercontent.com/f02fb99c55dfb7de32f2883d2e9fb388a2528157c537309344ebf62669eac5dd/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f636f6d70617261746f722f646f776e6c6f6164732e737667)](https://packagist.org/packages/kduma/comparator)[![Latest Unstable Version](https://camo.githubusercontent.com/ecff7a75ecf209d644ec35a47515ca3c0f68df56bf13ed74a1703020e88e184c/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f636f6d70617261746f722f762f756e737461626c652e737667)](https://packagist.org/packages/kduma/comparator)[![License](https://camo.githubusercontent.com/2183bdf4e987d88342f78fdeefd14f77fb4aff569aee18819eb35e21b40712fe/68747470733a2f2f706f7365722e707567782e6f72672f6b64756d612f636f6d70617261746f722f6c6963656e73652e737667)](https://packagist.org/packages/kduma/comparator)

Batch compare multiple files

Check full documentation here: [opensource.duma.sh/apps/deprecated/comparator](https://opensource.duma.sh/apps/deprecated/comparator)

**Notice: As of september 2025, this app is considered depracated. Please find a suitable replacement.**

Setup
=====

[](#setup)

Run bellow command to globally install Comparator:

```
composer global require kduma/comparator

```

and add `~/.composer/vendor/bin/` directory to your PATH in your `~/.bash_profile` (or `~/.bashrc`):

```
export PATH=~/.composer/vendor/bin:$PATH

```

Updating
========

[](#updating)

Execute following command:

```
composer global update

```

Usage
=====

[](#usage)

```
Usage: bin/compare [-c compare_to, --compare compare_to] [-f format, --format format] [-h, --help] [-o output, --output output] [path] [file]

Required Arguments:
	path
		The path with files to compare.

Optional Arguments:
	-h, --help
		Prints a usage statement
	-c compare_to, --compare compare_to
		Compare to
	-f format, --format format
		Output format (text or cli)
	-o output, --output output
		Output file for text format
	file
		If defined, compares specified file in subfolder.

```

StringCompare
=============

[](#stringcompare)

A special thanks to creators of [StringCompare](https://github.com/akalongman/php-string-compare), a PHP class that this package is using to compare text files.

Packagist
=========

[](#packagist)

View this package on Packagist.org: [kduma/comparator](https://packagist.org/packages/kduma/comparator)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance40

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity76

Established project with proven stability

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

Total

4

Last Release

1343d ago

Major Versions

1.0.2 → 2.0.02022-10-19

### Community

Maintainers

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

---

Top Contributors

[![kduma](https://avatars.githubusercontent.com/u/1062582?v=4)](https://github.com/kduma "kduma (9 commits)")

---

Tags

cliphp

### Embed Badge

![Health badge](/badges/kduma-comparator/health.svg)

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

###  Alternatives

[getkirby/cli

Kirby command line interface

6576.7k39](/packages/getkirby-cli)[shopware/psh

A build tool written in PHP utilizing sh scripts

6131.7k](/packages/shopware-psh)[soy-php/soy

PHP task runner focused on clean syntax and allowing flexible implementation

6512.1k10](/packages/soy-php-soy)

PHPackages © 2026

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