PHPackages                             maurohmartinez/compare-operation-backpack-laravel - 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. maurohmartinez/compare-operation-backpack-laravel

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

maurohmartinez/compare-operation-backpack-laravel
=================================================

Compare two models

1.0.5(5mo ago)3309[1 issues](https://github.com/maurohmartinez/compare-operation-backpack-laravel/issues)MITBladePHP ^8.0

Since Mar 26Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/maurohmartinez/compare-operation-backpack-laravel)[ Packagist](https://packagist.org/packages/maurohmartinez/compare-operation-backpack-laravel)[ RSS](/packages/maurohmartinez-compare-operation-backpack-laravel/feed)WikiDiscussions main Synced 1mo ago

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

Compare Operation for Backpack for Laravel
==========================================

[](#compare-operation-for-backpack-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/16decad81a13eedc192b47f323323861cbce0426bfe47fba4aeacf136391deaf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6175726f686d617274696e657a2f636f6d706172652d6f7065726174696f6e2d6261636b7061636b2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maurohmartinez/compare-operation-backpack-laravel)[![Total Downloads](https://camo.githubusercontent.com/f8a16e632cd56ff632d1e1d0a1d8d4c42fbd4bafef46f9d8edf8442608d82e10/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6175726f686d617274696e657a2f636f6d706172652d6f7065726174696f6e2d6261636b7061636b2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/maurohmartinez/compare-operation-backpack-laravel)

This package adds a Compare Operation for projects using the [Backpack for Laravel](https://backpackforlaravel.com/) administration panel.

Screenshot
----------

[](#screenshot)

[![Screen Recording 2024-09-27 at 18 17 19](https://private-user-images.githubusercontent.com/33960976/371588967-316e2ae0-fdaa-4a6a-a8d0-b9aa5e4be17b.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxMTAwODYsIm5iZiI6MTc3NTEwOTc4NiwicGF0aCI6Ii8zMzk2MDk3Ni8zNzE1ODg5NjctMzE2ZTJhZTAtZmRhYS00YTZhLWE4ZDAtYjlhYTVlNGJlMTdiLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAyVDA2MDMwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxZGRiMjQ1ZDlkN2FlMmNmNGYzZTY2NGU5Yzk0ZDNlZjIwYWVmNWRlNmMxNDY5NTFlZjgyYjJkMzE2NGQyOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dAH3RfufEPS-pxJtRa-dMpEGvL8bvKroRN3baErK4zk)](https://private-user-images.githubusercontent.com/33960976/371588967-316e2ae0-fdaa-4a6a-a8d0-b9aa5e4be17b.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzUxMTAwODYsIm5iZiI6MTc3NTEwOTc4NiwicGF0aCI6Ii8zMzk2MDk3Ni8zNzE1ODg5NjctMzE2ZTJhZTAtZmRhYS00YTZhLWE4ZDAtYjlhYTVlNGJlMTdiLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA0MDIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNDAyVDA2MDMwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWUxZGRiMjQ1ZDlkN2FlMmNmNGYzZTY2NGU5Yzk0ZDNlZjIwYWVmNWRlNmMxNDY5NTFlZjgyYjJkMzE2NGQyOTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dAH3RfufEPS-pxJtRa-dMpEGvL8bvKroRN3baErK4zk)

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

[](#installation)

Via Composer

```
composer require maurohmartinez/compare-operation-backpack-laravel
```

Usage
-----

[](#usage)

To use the Operation this package provides, inside your custom CrudController add the trait:

```
use \MHMartinez\CompareOperation\CompareOperation;
```

And then customize the columns to show just like you wouyld do with the Show Operation:

```
protected function setupCompareOperation(): void
    {
        $this->crud->column('id');
        $this->crud->column('name');
        $this->crud->column('email');
        // etc...
    }
```

Change log
----------

[](#change-log)

Changes are documented here on Github. Please see the [Releases tab](https://github.com/maurohmartinez/compare-operation-backpack-laravel/releases).

Testing
-------

[](#testing)

```
composer test
```

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

[](#contributing)

Contributions are welcome and will be fully credited:

- code contributions are accepted via Pull Requests to [this Github repo](https://github.com/maurohmartinez/compare-operation-backpack-laravel);
- documentation contributions are accepted via Pull Requests to [this Github repo](https://github.com/maurohmartinez/compare-operation-backpack-laravel);
- other contributions are most likely welcome in the way you see fit;

Security
--------

[](#security)

If you discover any security related issues, please email :author\_email instead of using the issue tracker.

Credits
-------

[](#credits)

- [Mauro Martinez](https://inspiredpulse.com/) Developer
- [Cristian Tabacitu](https://tabacitu.ro/) For creating [Backpack for Laravel](https://backpackforlaravel.com/)!

License
-------

[](#license)

This project is free for use, so you can install it on top of any Backpack &amp; Laravel project.

However, please note that you do need Backpack installed, so you need to also abide by its [YUMMY License](https://github.com/Laravel-Backpack/CRUD/blob/master/LICENSE.md). That means in production you'll need a Backpack license code. You can get a free one for non-commercial use (or a paid one for commercial use) on [backpackforlaravel.com](https://backpackforlaravel.com).

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance65

Regular maintenance activity

Popularity18

Limited adoption so far

Community8

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

Recently: every ~246 days

Total

6

Last Release

158d ago

PHP version history (2 changes)1.0.0PHP ^7.3|^8.0

1.0.3PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/21192abc454e8b809201f9150490b1b6f694cfdf3e6494d04fb915b9fb1e697d?d=identicon)[maurohmartinez](/maintainers/maurohmartinez)

---

Top Contributors

[![maurohmartinez](https://avatars.githubusercontent.com/u/33960976?v=4)](https://github.com/maurohmartinez "maurohmartinez (10 commits)")

---

Tags

laravelbackpackcompare operation

### Embed Badge

![Health badge](/badges/maurohmartinez-compare-operation-backpack-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/maurohmartinez-compare-operation-backpack-laravel/health.svg)](https://phpackages.com/packages/maurohmartinez-compare-operation-backpack-laravel)
```

###  Alternatives

[backpack/settings

Application settings interface for Laravel 5 using Backpack CRUD.

290870.9k10](/packages/backpack-settings)[backpack/theme-tabler

UI for Backpack v6 that uses Tabler and Bootstrap v5.

35536.5k](/packages/backpack-theme-tabler)[backpack/backupmanager

Admin interface for managing backups in Backpack, on Laravel 5.2+

340375.9k2](/packages/backpack-backupmanager)[backpack/activity-log

Activity Log for Backpack

3487.5k1](/packages/backpack-activity-log)[thomascombe/backpack-async-export

This is a package to manage async export in Backpack for Laravel

1528.5k](/packages/thomascombe-backpack-async-export)[webfactor/laravel-backpack-instant-fields

Instant fields to create/edit/delete related entities on the fly in Laravel Backpack

486.9k](/packages/webfactor-laravel-backpack-instant-fields)

PHPackages © 2026

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