PHPackages                             ankurk91/laravel-dedupe-queue - 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. [Queues &amp; Workers](/categories/queues)
4. /
5. ankurk91/laravel-dedupe-queue

AbandonedArchivedLibrary[Queues &amp; Workers](/categories/queues)

ankurk91/laravel-dedupe-queue
=============================

Prevent duplicate jobs from running in Laravel php framework

1.0.0(3y ago)012.0k↓56.3%1MITPHPPHP ^8.1

Since Feb 24Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/ankurk91/laravel-dedupe-queue)[ Packagist](https://packagist.org/packages/ankurk91/laravel-dedupe-queue)[ Docs](https://github.com/ankurk91/laravel-dedupe-queue)[ RSS](/packages/ankurk91-laravel-dedupe-queue/feed)WikiDiscussions main Synced 2w ago

READMEChangelogDependencies (6)Versions (3)Used By (0)

Deduplicate Queues for Laravel
==============================

[](#deduplicate-queues-for-laravel)

[![Packagist](https://camo.githubusercontent.com/3372c3e8b929eaab8496169bf936296286b77e899c234f8a977797b776d08b0c/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f616e6b75726b39312f6c61726176656c2d6465647570652d7175657565)](https://packagist.org/packages/ankurk91/laravel-dedupe-queue)[![GitHub-tag](https://camo.githubusercontent.com/bd5412522f94c76b3d3e1e7a2f506794829f95bed00bd1e642ceb4a87a75730c/68747470733a2f2f62616467656e2e6e65742f6769746875622f7461672f616e6b75726b39312f6c61726176656c2d6465647570652d7175657565)](https://github.com/ankurk91/laravel-dedupe-queue/tags)[![License](https://camo.githubusercontent.com/82428f107cb8926872f70a501516d17f940d9e1b06e05138077f20a85e7f3c67/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f616e6b75726b39312f6c61726176656c2d6465647570652d7175657565)](LICENSE.txt)[![Downloads](https://camo.githubusercontent.com/af4ba183c343e7b27d5c2f195f266eab724bb2a63f74eb171a84a1d7862054d0/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f616e6b75726b39312f6c61726176656c2d6465647570652d7175657565)](https://packagist.org/packages/ankurk91/laravel-dedupe-queue/stats)[![GH-Actions](https://github.com/ankurk91/laravel-dedupe-queue/workflows/tests/badge.svg)](https://github.com/ankurk91/laravel-dedupe-queue/actions)[![codecov](https://camo.githubusercontent.com/7863bf89f01fe9e224f1c58d531c424585f6d758103edcfcf4ac94a188996b4a/68747470733a2f2f636f6465636f762e696f2f67682f616e6b75726b39312f6c61726176656c2d6465647570652d71756575652f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/ankurk91/laravel-dedupe-queue)

Prevent duplicate jobs in Laravel php framework.

### Annoucement

[](#annoucement)

📣 Laravel finally shipped with this feature in v12.27.0, [read more](https://laravel.com/docs/12.x/queues#sqs-fifo-and-fair-queues)

> **Warning**This package is in its early stage and may have some edge case left.

Why and How?
------------

[](#why-and-how)

Laravel does not prevent duplicate jobs in AWS [SQS Standard](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/standard-queues.html)Queue.

This package takes advantage of the `UUID` assigned to each of the job pushed to the queue. The UUID of the job does not get changed if the same message appears again in SQS queue.

This package injects a global middleware to all Jobs, Mailables, Notifications and Listeners; which keep tracks of incoming jobs and discards any duplicates by checking the UUID.

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

[](#installation)

You can install the package via composer:

```
composer require "ankurk91/laravel-dedupe-queue"
```

The service provider will automatically register itself.

Optionally, You can publish the config file by:

```
php artisan vendor:publish --provider="Ankurk91\DedupeQueue\DedupeQueueServiceProvider"
```

> **Note**It is suggested to use Redis, Memcached or DynamoDB for faster Atomic Locks.

Usage
-----

[](#usage)

Install and forget it.

You can keep this package enabled even for `sync` queue connection.

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

### Testing

[](#testing)

```
composer test
```

### Security

[](#security)

If you discover any security issue, please email `pro.ankurk1[at]gmail[dot]com` instead of using the issue tracker.

### License

[](#license)

This package is licensed under [MIT License](https://opensource.org/licenses/MIT).

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

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

Unknown

Total

1

Last Release

1272d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6111524?v=4)[Ankur K](/maintainers/ankurk91)[@ankurk91](https://github.com/ankurk91)

---

Top Contributors

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

---

Tags

deduplicationlaravelqueuesqslaraveljobsqsuniqueidempotentdeduplication

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ankurk91-laravel-dedupe-queue/health.svg)

```
[![Health](https://phpackages.com/badges/ankurk91-laravel-dedupe-queue/health.svg)](https://phpackages.com/packages/ankurk91-laravel-dedupe-queue)
```

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k45.4M705](/packages/spatie-laravel-medialibrary)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.9M110](/packages/mongodb-laravel-mongodb)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

46273.9k](/packages/harris21-laravel-fuse)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k31.8M162](/packages/laravel-cashier)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k57.2M683](/packages/laravel-scout)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9922.4M146](/packages/roots-acorn)

PHPackages © 2026

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