PHPackages                             ayman-mahgoub/compare-engine-tracker - 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. ayman-mahgoub/compare-engine-tracker

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

ayman-mahgoub/compare-engine-tracker
====================================

This package used to compare to objects with the same type

01PHP

Since Feb 1Pushed 6y ago1 watchersCompare

[ Source](https://github.com/aymanMahgoub/CompareEngineTracker)[ Packagist](https://packagist.org/packages/ayman-mahgoub/compare-engine-tracker)[ RSS](/packages/ayman-mahgoub-compare-engine-tracker/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

CompareEngineTracker
====================

[](#compareenginetracker)

- used to Compare properties form the same objects using @PropertyTracker annotation return isChanged (true/false) and changedList if exist.

About
-----

[](#about)

- We build **CompareEngineTracker** to suitable all php apps that need to keep track changing that happened to two objects (model, entities, documents ...etc).

Installing
----------

[](#installing)

- Via Composer

```
$ composer require ayman-mahgoub/Compare-engine-tracker

```

Getting Started
---------------

[](#getting-started)

- add @propertyTracker annotation above your object property

```
    /**
    *@propertyTracker
    */
    private $name;

```

- pass the two models to compareEngineTracker.

```
     $reader        = new AnnotationReader();
     $compareEngine = new CompareEngineTracker($reader);
     $result        = $compareEngine->compare($oldObject, $newObject);

```

- result will contain isChanged index hold if the new object is changed or not and changedList index hold every property oldVal and newVal.

Running the tests
-----------------

[](#running-the-tests)

`$ composer test`

**please note that**
====================

[](#please-note-that)

- For now compare works only for two object form the same type.

Contributing
------------

[](#contributing)

- Please read [CONTRIBUTING.md](https://github.com/aymanMahgoub/CompareEngineTracker/blob/master/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.

Authors
-------

[](#authors)

- **Ayman Mahgoub** - *Initial work* - [aymanMahgoub](https://github.com/aymanMahgoub)
- See also the list of [contributors](https://github.com/aymanMahgoub/CompareEngineTracker/contributors) who participated in this project.

License
-------

[](#license)

- This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/aymanMahgoub/CompareEngineTracker/blob/master/LICENSE.md) file for details

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/10bccf58018f13672791a7153df22472e91a5f1012ff726048142e129612fba7?d=identicon)[AymanMahgoub](/maintainers/AymanMahgoub)

---

Top Contributors

[![aymanMahgoub](https://avatars.githubusercontent.com/u/22292358?v=4)](https://github.com/aymanMahgoub "aymanMahgoub (6 commits)")

### Embed Badge

![Health badge](/badges/ayman-mahgoub-compare-engine-tracker/health.svg)

```
[![Health](https://phpackages.com/badges/ayman-mahgoub-compare-engine-tracker/health.svg)](https://phpackages.com/packages/ayman-mahgoub-compare-engine-tracker)
```

###  Alternatives

[ytake/php-presto-client

php prestodb client

1836.8k](/packages/ytake-php-presto-client)

PHPackages © 2026

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