PHPackages                             sanmark/laravel-queue-fallback - 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. sanmark/laravel-queue-fallback

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

sanmark/laravel-queue-fallback
==============================

v1.0.0(1y ago)423[2 issues](https://github.com/sanmark/Laravel-queue-fallback/issues)MITPHP

Since May 21Pushed 1y ago2 watchersCompare

[ Source](https://github.com/sanmark/Laravel-queue-fallback)[ Packagist](https://packagist.org/packages/sanmark/laravel-queue-fallback)[ RSS](/packages/sanmark-laravel-queue-fallback/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

 [![](./logo-transparent.png)](./logo-transparent.png)

Laravel Queue Fallback is a package designed to provide seamless fallback mechanisms for queue services in Laravel applications. It ensures that your queued jobs are processed even if the primary queue service encounters issues, thereby enhancing the reliability and resilience of your application's background processing tasks.

Features
--------

[](#features)

- Automatic fallback to secondary queue service in case of primary service failures.
- Configuration options for customizing fallback behavior.
- Compatibility with Laravel's native queue configuration and services.

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

[](#installation)

You can install the package via Composer. Run the following command in your terminal:

```
composer require sanmark/laravel-queue-fallback
```

Add fallback queue connection (add below env file into your project .env file)

```
FAILBACK_QUEUE_CONNECTION = "database"
```

Usage
-----

[](#usage)

To use this package, you need to:

Use the **Sanmark\\QueueFallback\\ShouldFallback** trait in your job files.

```
namespace App\Jobs;

use Sanmark\QueueFallback\ShouldFallback;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;

class ExampleJob implements ShouldQueue
{
    use Dispatchable, InteractsWithQueue, Queueable, SerializesModels, ShouldFallback;

    public function handle()
    {
        // Job logic here
    }
}
```

Use dispatchWithFallback instead of dispatch when dispatching jobs.

```
use App\Jobs\ExampleJob;

ExampleJob::dispatchWithFallback($parameter);
```

This ensures that if the primary queue service fails, the job will be automatically dispatched to the secondary queue service specified in the configuration.

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

[](#configuration)

After installing the package, you can configure it by publishing the configuration file. Run the following artisan command:

```
php artisan vendor:publish --provider="Sanmark\\QueueFallback\\QueueFallbackServiceProvider"
```

This command will publish a configuration file named `queue-fallback.php` in your Laravel application's config directory. You can customize the fallback behavior and specify your secondary queue service in this file.

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

[](#contributing)

Contributions are welcome! If you have any ideas, suggestions, or bug reports, please open an issue or submit a pull request on GitHub.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT](LICENSE.md) license.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance21

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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

720d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d5c91be397f03f3b33df1ea45ea8f49c5120f88ff04985334d5e78bd58c9148?d=identicon)[sachintha89](/maintainers/sachintha89)

![](https://www.gravatar.com/avatar/8cf9f6817681feeccb665272c484ac26fd328f1e36017b746f10c2ee97e14433?d=identicon)[chethanakh](/maintainers/chethanakh)

---

Top Contributors

[![chethanakh](https://avatars.githubusercontent.com/u/70655087?v=4)](https://github.com/chethanakh "chethanakh (2 commits)")[![AsankaSanjeewa](https://avatars.githubusercontent.com/u/86165954?v=4)](https://github.com/AsankaSanjeewa "AsankaSanjeewa (1 commits)")

---

Tags

fallback-queuelaravelqueuesanmarklaravel-pluginQueue fallback

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/sanmark-laravel-queue-fallback/health.svg)

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

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M171](/packages/react-async)

PHPackages © 2026

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