PHPackages                             thoughtco/lunar-cart-abandonment - 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. thoughtco/lunar-cart-abandonment

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

thoughtco/lunar-cart-abandonment
================================

Lunar Cart Abandonment Addon

0.3.2(2mo ago)91.6k↓50%1MITPHPPHP ^8.0

Since Oct 11Pushed 2mo ago4 watchersCompare

[ Source](https://github.com/thoughtco/lunar-cart-abandonment)[ Packagist](https://packagist.org/packages/thoughtco/lunar-cart-abandonment)[ RSS](/packages/thoughtco-lunar-cart-abandonment/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (4)Versions (12)Used By (0)

Lunar Cart Abandonment
----------------------

[](#lunar-cart-abandonment)

An simple add-on for Lunar that triggers jobs based on how long a cart has been inactive for.

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

[](#installation)

First, require as a composer dependency:

```
composer require thoughtco/lunar-cart-abandonment

```

Then publish the config file to allow you to define triggers and jobs.

```
php artisan vendor:publish --tag=lunar-cart-abandonment-config

```

Usage
-----

[](#usage)

You define triggers by adding new arrays to the `triggers` key in the config file, eg:

```
        [
            'interval' => 5, // minutes
            'job' => \App\Jobs\CartAbandonment::class,
            'queue' => 'default', // optional
            'queue_connection' => 'redis', // optional
            'config' => [], // this will be passed to your job along with the cart
        ],
```

alternatively you can define a callable that returns an array of triggers.

```
'triggers' => [\App\Classes\CartAbandonmentTriggers::class, 'handle']
```

```
class CartAbandonmentTriggers
{
    public static function handle()
    {
        return [
            [
                'interval' => 5, // minutes
                'job' => \App\Jobs\CartAbandonment::class,
                'queue' => 'default', // optional
                'queue_connection' => 'redis', // optional
                'config' => [], // this will be passed to your job along with the cart
            ]
        ];
    }
```

Your job should expect 2 arguments, `$cart` and `$config`.

If you don't want the scheduled task to run every 5 minutes, you can change the frequency by using the `schedule_interval` config setting.

Support
-------

[](#support)

This is a free addon so support is provided on an as-we-have-capacity basis. If you have a feature request or experience a bug, please [open a GitHub Issue](https://github.com/thoughtco/lunar-cart-abandonment/issues).

Only the latest version of this addon is supported. If you open a bug report using an old version, your issue will be closed.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance86

Actively maintained with recent releases

Popularity26

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.2% 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 ~109 days

Recently: every ~201 days

Total

9

Last Release

74d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51899?v=4)[Ryan Mitchell](/maintainers/ryanmitchell)[@ryanmitchell](https://github.com/ryanmitchell)

---

Top Contributors

[![ryanmitchell](https://avatars.githubusercontent.com/u/51899?v=4)](https://github.com/ryanmitchell "ryanmitchell (16 commits)")[![GarethFrost](https://avatars.githubusercontent.com/u/87228697?v=4)](https://github.com/GarethFrost "GarethFrost (2 commits)")[![anditopping](https://avatars.githubusercontent.com/u/1104234?v=4)](https://github.com/anditopping "anditopping (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/thoughtco-lunar-cart-abandonment/health.svg)

```
[![Health](https://phpackages.com/badges/thoughtco-lunar-cart-abandonment/health.svg)](https://phpackages.com/packages/thoughtco-lunar-cart-abandonment)
```

###  Alternatives

[frittenkeez/laravel-vouchers

Voucher system for Laravel 9+

5819.9k2](/packages/frittenkeez-laravel-vouchers)[setasign/php-stub-generator

A tool to generate stub-files for your php classes.

302.1k1](/packages/setasign-php-stub-generator)

PHPackages © 2026

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