PHPackages                             redrat/deeper - 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. redrat/deeper

ActiveLibrary

redrat/deeper
=============

Deeper is a easy way to compare if 2 objects is equal based on values in these objects. This library is heavily inspired in Golang's reflect.DeepEqual()

0.1.0(4y ago)452[1 issues](https://github.com/joubertredrat/Deeper/issues)[1 PRs](https://github.com/joubertredrat/Deeper/pulls)MITPHPPHP &gt;=7.2

Since Nov 27Pushed 4y ago2 watchersCompare

[ Source](https://github.com/joubertredrat/Deeper)[ Packagist](https://packagist.org/packages/redrat/deeper)[ RSS](/packages/redrat-deeper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Deeper
======

[](#deeper)

Deeper is a easy way to compare if 2 objects is equal based on values in these objects. This library is heavily inspired in Golang's [reflect.DeepEqual()](https://pkg.go.dev/reflect#DeepEqual).

Deeper supports parent class with any kind of access attributes, public, protected and private. Deeper validates objects as atribbutes too, then, while have objects to test, Deeper will test recursively.

### Installation

[](#installation)

```
composer require redrat/deeper
```

### Usage

[](#usage)

It's very easy, create instance of Deeper object with objects to compare and check if it deep equal, like example below.

```
use RedRat\Deeper\Deeper;

$deeper = new Deeper($objectOne, $objectTwo);
$deeper->isEqual(); // if have same values on both objects, return TRUE
```

### Known limitations

[](#known-limitations)

Some PHP core objects can't work properly, in this case, open an issue for we create a custom validation for this object.

### Author

[](#author)

[![Joubert RedRat](https://camo.githubusercontent.com/ba40324658b49f36c2334a5b3afa014d4dda13bc4ccf08db64d5b3f82a16dfc3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4a6f75626572742d5265645261742d726564)](https://joubertredrat.github.io)[![and the contributors](https://camo.githubusercontent.com/5021bd8855cfcc768cd2ffc663a7e1a36138ac6b098b05ee746c45bf6dd5d034/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f616e642532307468652d636f6e7472696275746f72732d73756363657373)](https://github.com/joubertredrat/Deeper/graphs/contributors)

### License

[](#license)

The cute and amazing [MIT](https://github.com/joubertredrat/Deeper/blob/master/license).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1633d ago

### Community

Maintainers

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

---

Top Contributors

[![joubertredrat](https://avatars.githubusercontent.com/u/1520407?v=4)](https://github.com/joubertredrat "joubertredrat (16 commits)")

---

Tags

libraryphpphp-libraryphp7php8

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/redrat-deeper/health.svg)

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

PHPackages © 2026

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