PHPackages                             mtnaghibi/safe-dispatch - 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. mtnaghibi/safe-dispatch

ActiveLibrary

mtnaghibi/safe-dispatch
=======================

Ensuring Reliable Dispatch of Jobs to the Queue

1.0.0(2y ago)02MITPHPPHP ^7.4|^8.0

Since May 23Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (2)Used By (0)

Ensuring Reliable Dispatch of Jobs to the Queue
===============================================

[](#ensuring-reliable-dispatch-of-jobs-to-the-queue)

In Laravel, when attempting to dispatch a job to a queue, there is a possibility of connection failures such as a downed broker, an unresponsive database, or a broken Redis connection. In such cases, it is important to handle the job as a failed job appropriately, and prevent the exception from propagating to the client.

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

[](#installation)

You can install the package via composer:

```
composer require mtnaghibi/safe-dispatch
```

Usage
-----

[](#usage)

```
To use it, simply replace `Dispatchable` with `SafeDispatchable` in your jobs.
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [MohammadTaghi Naghibi](https://github.com/mtnaghibi)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

1083d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72f272632a3f7ab7db44414277fd91b1d265346e0c5ae6df77c2366c7535856d?d=identicon)[mtnaghibi](/maintainers/mtnaghibi)

---

Tags

mtnaghibisafe-dispatch

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mtnaghibi-safe-dispatch/health.svg)

```
[![Health](https://phpackages.com/badges/mtnaghibi-safe-dispatch/health.svg)](https://phpackages.com/packages/mtnaghibi-safe-dispatch)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)

PHPackages © 2026

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