PHPackages                             rapidez/compare - 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. rapidez/compare

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

rapidez/compare
===============

Rapidez Product Compare

5.0.2(1mo ago)01.2k↓100%5GPL-3.0-or-laterBladePHP ^8.0

Since Jun 30Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/rapidez/compare)[ Packagist](https://packagist.org/packages/rapidez/compare)[ Docs](https://rapidez.io)[ RSS](/packages/rapidez-compare/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (23)Used By (0)

Rapidez Compare
===============

[](#rapidez-compare)

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

[](#installation)

```
composer require rapidez/compare

```

Compared products
-----------------

[](#compared-products)

The compared products are available in the compare variable imported from the `useCompare.js` file.

```
import { compare } from './../stores/useCompare.js'
```

Adding products
---------------

[](#adding-products)

To add a product to the compare list you can simply import the add function and execute it with product id's.

```
import { addProductToCompare } from './../stores/useCompare.js'

addProductToCompare(['1', '2']);
```

If you want a button on the product detail page, you can simply import this partial:

```
@include('rapidez-compare::product.partials.compare')

```

If you want checkbox on a category page, you can simply add this import in the item tile:

```
@include('rapidez-compare::listing.partials.checkbox')

```

Showing a user their compare list
---------------------------------

[](#showing-a-user-their-compare-list)

Within your vue app container you can show the user they have a compare list. This will show a button with a count. Clicking on this will result in the user redirecting to the compare page.

```
@include('rapidez-compare::partials.button')

```

Compare page
------------

[](#compare-page)

The compare page show's a list of the comparable attributes of the products that are added. The url of the compare page can be changed in the config.

Views
-----

[](#views)

```
php artisan vendor:publish --provider="Rapidez\Compare\RapidezCompareServiceProvider"

```

Note
----

[](#note)

Currently this module does not support:

- Linking a compare list to a customer

License
-------

[](#license)

GNU General Public License v3. Please see [License File](LICENSE) for more information.

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance89

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 53.4% 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 ~86 days

Recently: every ~71 days

Total

21

Last Release

53d ago

Major Versions

0.2.1 → 1.0.02024-04-09

1.x-dev → 3.0.02025-03-18

3.x-dev → 4.0.02025-06-05

4.x-dev → 5.0.02025-11-27

PHP version history (4 changes)0.1.0PHP ^7.4|^8.0

0.2.0PHP ^8.0|^8.1

1.5.0PHP ^8.0|^8.1|^8.2

3.1.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![royduin](https://avatars.githubusercontent.com/u/1703233?v=4)](https://github.com/royduin "royduin (31 commits)")[![indykoning](https://avatars.githubusercontent.com/u/15870933?v=4)](https://github.com/indykoning "indykoning (10 commits)")[![BobWez98](https://avatars.githubusercontent.com/u/23509926?v=4)](https://github.com/BobWez98 "BobWez98 (5 commits)")[![jordythevulder](https://avatars.githubusercontent.com/u/28647869?v=4)](https://github.com/jordythevulder "jordythevulder (2 commits)")[![quintenbuis](https://avatars.githubusercontent.com/u/36452184?v=4)](https://github.com/quintenbuis "quintenbuis (2 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (2 commits)")[![VincentBean](https://avatars.githubusercontent.com/u/3906942?v=4)](https://github.com/VincentBean "VincentBean (2 commits)")[![Jade-GG](https://avatars.githubusercontent.com/u/32514269?v=4)](https://github.com/Jade-GG "Jade-GG (2 commits)")[![JimmyHoenderdaal](https://avatars.githubusercontent.com/u/101801301?v=4)](https://github.com/JimmyHoenderdaal "JimmyHoenderdaal (2 commits)")

### Embed Badge

![Health badge](/badges/rapidez-compare/health.svg)

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

###  Alternatives

[zhelyabuzhsky/yii2-sitemap

A Yii2 tool to generate sitemap.xml.

3439.7k](/packages/zhelyabuzhsky-yii2-sitemap)[bigfork/htmleditorsrcset

Simple srcset integration with SilverStripe’s HTMLEditorField

1025.4k4](/packages/bigfork-htmleditorsrcset)

PHPackages © 2026

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