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

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

grifart/comparable-polyfill
===========================

Provides interface of Comparable RFC.

v1.0.1(7y ago)019.9k↓30.4%2MITPHPPHP &gt;= 7.0.0

Since Nov 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/grifart/comparable-polyfill)[ Packagist](https://packagist.org/packages/grifart/comparable-polyfill)[ RSS](/packages/grifart-comparable-polyfill/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (2)

Comparable interface polyfill
=============================

[](#comparable-interface-polyfill)

Provides interface of [comparable RFC](https://wiki.php.net/rfc/comparable).

This makes logical comparison of objects much easier by providing common interface for object comparision.

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

[](#installation)

```
composer require grifart/comparable-polyfill
```

TODO
----

[](#todo)

- UncomparableException?

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~370 days

Total

2

Last Release

2729d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/939d12e9a77e30f843e33a785f81d8ee45b71bf2db88c0d32c0d36571c71a58d?d=identicon)[jkuchar](/maintainers/jkuchar)

---

Top Contributors

[![jkuchar](https://avatars.githubusercontent.com/u/133822?v=4)](https://github.com/jkuchar "jkuchar (2 commits)")[![jiripudil](https://avatars.githubusercontent.com/u/1042159?v=4)](https://github.com/jiripudil "jiripudil (1 commits)")

### Embed Badge

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

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

PHPackages © 2026

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