PHPackages                             etel/comparable - 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. etel/comparable

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

etel/comparable
===============

Represents contracts and infrastructure for compare objects.

v2.0.0(1mo ago)02MITPHPPHP ^8.4CI passing

Since Mar 21Pushed 1mo agoCompare

[ Source](https://github.com/etel-soft/comparable)[ Packagist](https://packagist.org/packages/etel/comparable)[ Docs](https://github.com/etel-soft/comparable)[ RSS](/packages/etel-comparable/feed)WikiDiscussions master Synced 3w ago

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

[![CI Status](https://github.com/etel-soft/comparable/workflows/CI/badge.svg)](https://github.com/etel-soft/comparable/actions)[![codecov](https://camo.githubusercontent.com/00aa07f0d25d5c3cba6acb497b78beca49a106dd4fa9d76fcbea572721e4096f/68747470733a2f2f636f6465636f762e696f2f67682f6574656c2d736f66742f636f6d70617261626c652f67726170682f62616467652e7376673f746f6b656e3d5a52525335565a395034)](https://codecov.io/gh/etel-soft/comparable)[![Latest Stable Version](https://camo.githubusercontent.com/99761d646ab9677cecc28e13daa30607895dda67d9f27391ebd61d27ecf722fa/687474703a2f2f706f7365722e707567782e6f72672f6574656c2f636f6d70617261626c652f76)](https://packagist.org/packages/etel/comparable)[![License](https://camo.githubusercontent.com/0026ad50ef975778c81c71ce08aa2ea5743738b59f3fdd9ab618642165abceeb/687474703a2f2f706f7365722e707567782e6f72672f6574656c2f636f6d70617261626c652f6c6963656e7365)](https://packagist.org/packages/etel/comparable)[![PHP Version Require](https://camo.githubusercontent.com/77b148dffb28c88d1b7d9fada10dd8cd7e4dab19f51828444e6568703a3a0891/687474703a2f2f706f7365722e707567782e6f72672f6574656c2f636f6d70617261626c652f726571756972652f706870)](https://packagist.org/packages/etel/comparable)

Comparable component
====================

[](#comparable-component)

Represents contracts and infrastructure for compare objects.

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance90

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

Total

3

Last Release

45d ago

Major Versions

v1.0.1 → v2.0.02026-05-10

### Community

Maintainers

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

---

Top Contributors

[![relo-san](https://avatars.githubusercontent.com/u/322613?v=4)](https://github.com/relo-san "relo-san (7 commits)")

---

Tags

comparecomparableequatable

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/etel-comparable/health.svg)

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

###  Alternatives

[icecave/parity

A customizable deep comparison library.

497.1M11](/packages/icecave-parity)[longman/ip-tools

PHP IP Tools for manipulation with IPv4 and IPv6

147253.5k7](/packages/longman-ip-tools)[brunoconte3/dev-utils

A complete PHP utility library for validating, formatting, comparing data, and more.

3526.3k](/packages/brunoconte3-dev-utils)[sgh/comparable

Provides Comparable and Comparator interfaces and methods to sort and compare objects based on these.

1474.5k2](/packages/sgh-comparable)[fjw/color-compare

A library for converting colors (Hex, RGB, HSL, CIELAB (LAB), DIN-99) and calculating color distances based on DIN-99.

1310.4k](/packages/fjw-color-compare)

PHPackages © 2026

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