PHPackages                             bhavinjr/laravel-wishlist - 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. bhavinjr/laravel-wishlist

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

bhavinjr/laravel-wishlist
=========================

wishlist for laravel 5.\*.\*

1.4(6y ago)81.4k↓75%4[3 issues](https://github.com/bhavinjr/laravel-wishlist/issues)MITPHPPHP &gt;=5.6.0

Since Dec 12Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bhavinjr/laravel-wishlist)[ Packagist](https://packagist.org/packages/bhavinjr/laravel-wishlist)[ RSS](/packages/bhavinjr-laravel-wishlist/feed)WikiDiscussions master Synced 2w ago

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

laravel-wishlist
================

[](#laravel-wishlist)

A simple Wishlist implementation for Laravel 5.*.*.

[![Latest Stable Version](https://camo.githubusercontent.com/921981c332afe5be3bbed02a5516a6bceb2007203e093c7153d4cf8cebbbb62d/68747470733a2f2f706f7365722e707567782e6f72672f62686176696e6a722f6c61726176656c2d776973686c6973742f762f737461626c65)](https://packagist.org/packages/bhavinjr/laravel-wishlist)[![Total Downloads](https://camo.githubusercontent.com/9fe0c2a410c2ce9124cf45c069d0aad5b88932da730ee4ef6329c8dc3ea84bfd/68747470733a2f2f706f7365722e707567782e6f72672f62686176696e6a722f6c61726176656c2d776973686c6973742f646f776e6c6f616473)](https://packagist.org/packages/bhavinjr/laravel-wishlist)[![License](https://camo.githubusercontent.com/deb96e3d29d1b481e3c18ea3e6d195b656fe93514a3923d2bfbb702264b6184d/68747470733a2f2f706f7365722e707567782e6f72672f62686176696e6a722f6c61726176656c2d776973686c6973742f6c6963656e7365)](https://packagist.org/packages/bhavinjr/laravel-wishlist)

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

[](#installation)

First, you'll need to install the package via Composer:

```
$ composer require bhavinjr/laravel-wishlist
```

If you are don't use using Laravel 5.5.\* Then, update `config/app.php` by adding an entry for the service provider.

```
'providers' => [
    // ...
    Bhavinjr\Wishlist\Providers\WishlistServiceProvider::class,
];

'aliases' => [
    //...
    "Wishlist": "Bhavinjr\Wishlist\Facades\Wishlist",
];
```

In command line paste this command:

```
php artisan config:cache
```

In command line again, publish the default configuration file:

```
php artisan vendor:publish --provider="Bhavinjr\Wishlist\Providers\WishlistServiceProvider"
```

In command line paste this command:

```
php artisan migrate
```

Configuration
-------------

[](#configuration)

Configuration was designed to be as flexible. global configuration can be set in the `config/wishlist.php` file.

```
return [
    'product_model'         =>  'App\Models\Product',
];

```

after update `config/wishlist.php` file.

```
php artisan config:cache
```

Usage
-----

[](#usage)

The package gives you the following methods to use:

Adding an item to the wishlist is really simple

you need specify product\_id and user\_id respectively all parameter are compulsory

### Wishlist::add()

[](#wishlistadd)

```
Wishlist::add(15, 1);
```

### Wishlist::remove()

[](#wishlistremove)

To remove an item from the wishlist, specify the wishlist\_id.

```
Wishlist::remove(2);
```

### Wishlist::getUserWishlist()

[](#wishlistgetuserwishlist)

To get users all wishlist item, specify the user\_id.

```
Wishlist::getUserWishlist(1);
```

### Wishlist::removeUserWishlist()

[](#wishlistremoveuserwishlist)

To remove users all wishlist item, specify the user\_id.

```
Wishlist::removeUserWishlist(1);
```

### Wishlist::removeByProduct()

[](#wishlistremovebyproduct)

To remove particular product using product\_id, specify the product\_id and user\_id respectively.

```
Wishlist::removeByProduct(15, 1);
```

### Wishlist::count()

[](#wishlistcount)

To count users all wishlist item, specify the user\_id.

```
Wishlist::count(1);
```

### Wishlist::getWishlistItem()

[](#wishlistgetwishlistitem)

To get particular wishlist item, specify the product\_id and user\_id respectively

```
Wishlist::getWishlistItem(15, 1);
```

You can also load product detail

```
$result  =  Wishlist::getUserWishlist(1)->load('product');

or you can also access directly
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

2410d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/01c6fe33126dfd61eb9a802f458eb760ffbcae3a091e76b89aeb8b6c0e8678a0?d=identicon)[bhavinjr](/maintainers/bhavinjr)

---

Top Contributors

[![bhavinjr](https://avatars.githubusercontent.com/u/30195960?v=4)](https://github.com/bhavinjr "bhavinjr (3 commits)")

---

Tags

bookmarkecommerce-wishlistlaravellaravel-bookmarklaravel-wishlistwishlistwishlist-ecommercewishlist-laravellaravelwishlistlaravel-wishlistlaravel ecommercewishlist laravelecommerce laravel wishlist

### Embed Badge

![Health badge](/badges/bhavinjr-laravel-wishlist/health.svg)

```
[![Health](https://phpackages.com/badges/bhavinjr-laravel-wishlist/health.svg)](https://phpackages.com/packages/bhavinjr-laravel-wishlist)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[vinkius-labs/laravel-page-speed

Laravel Page Speed

2.5k9.6k1](/packages/vinkius-labs-laravel-page-speed)[webwizo/laravel-shortcodes

Wordpress like shortcodes for Laravel 11, 12 and 13

223700.9k8](/packages/webwizo-laravel-shortcodes)[emargareten/inertia-modal

Inertia Modal is a Laravel package that lets you implement backend-driven modal dialogs for Inertia apps.

90142.9k](/packages/emargareten-inertia-modal)[erag/laravel-pwa

A simple and easy-to-use PWA (Progressive Web App) package for Laravel applications.

177124.1k](/packages/erag-laravel-pwa)

PHPackages © 2026

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