PHPackages                             acdphp/laravel-queued-events - 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. acdphp/laravel-queued-events

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

acdphp/laravel-queued-events
============================

Dispatching Events into queues. This is especially useful for distributed systems events using fanout queues.

v2.1.0(2y ago)06MITPHPPHP ^8.0

Since Dec 27Pushed 2y agoCompare

[ Source](https://github.com/acdphp/laravel-queued-events)[ Packagist](https://packagist.org/packages/acdphp/laravel-queued-events)[ RSS](/packages/acdphp-laravel-queued-events/feed)WikiDiscussions main Synced yesterday

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

Laravel Queued Events
=====================

[](#laravel-queued-events)

[![Latest Stable Version](https://camo.githubusercontent.com/3b5fa8e1b7b174776c0ac757158d3837b9b0f640d5282844d43af283209b0461/68747470733a2f2f706f7365722e707567782e6f72672f6163647068702f6c61726176656c2d7175657565642d6576656e74732f76)](https://packagist.org/packages/acdphp/laravel-queued-events)

Dispatching Events into queues. This is especially useful for distributed systems events using fanout queues.

[![workflow](./.docs/workflow.jpg)](./.docs/workflow.jpg)

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

[](#installation)

1. Install the package ```
    composer require acdphp/laravel-queued-events
    ```

Usage
-----

[](#usage)

1. Extend `QueuedEvent` to your event.

    ```
    use Acdphp\QueuedEvents\Events\QueuedEvent;

    class UserCreatedEvent extends QueuedEvent
    {
        // Remove the Dispatchable trait

        public function __construct(public $object)
        {
        }
    }
    ```
2. Call `dispatch()`

    ```
    UserCreatedEvent::dispatch(['foo' => 'bar']);
    ```

    - You may specify a queue connection and queue:

    ```
    UserCreatedEvent::dispatch(['foo' => 'bar'])
        ->onConnection('your-fanout-queue-connection')
        ->onQueue('your-custom-queue');
    ```

    - Utilities are also available: `dispatchIf()`, `dispatchUnless()`

    ```
    // Dispatches if $condition is true
    UserCreatedEvent::dispatchIf($condition, ['foo' => 'bar']);

    // Dispatches if $condition is false
    UserCreatedEvent::dispatchUnless($condition, ['foo' => 'bar']);
    ```
3. Default dispatch methods are prefixed with `internal`

    ```
    UserCreatedEvent::internalDispatch(['foo' => 'bar']);

    UserCreatedEvent::internalDispatchIf(['foo' => 'bar']);

    UserCreatedEvent::internalDispatchUnless(['foo' => 'bar']);
    ```

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

[](#configuration)

```
php artisan vendor:publish --tag=queued-events-config
```

### QUEUED\_EVENTS\_QUEUE\_CONNECTION

[](#queued_events_queue_connection)

The default queue connection will be whatever your `QUEUE_CONNECTION` is set. You may override this by setting `QUEUED_EVENTS_QUEUE_CONNECTION`

### QUEUED\_EVENTS\_QUEUE

[](#queued_events_queue)

The default queue will be `default`. You may override this by setting `QUEUED_EVENTS_QUEUE`

Notes
-----

[](#notes)

- Using Laravel helpers, like `event(...)` or `app('events')->dispatch(...)`, will dispatch the job internally. Only use `::dispatch`, `::dispatchIf` and `::dispatchUnless` to dispatch on queue.
- Use Laravel's queued listener if you're only using this in a monolithic application.

License
-------

[](#license)

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

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

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

Every ~3 days

Total

3

Last Release

912d ago

Major Versions

v1.0.0 → v2.0.02023-12-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/145334055?v=4)[Acdphp](/maintainers/acdphp)[@acdphp](https://github.com/acdphp)

---

Top Contributors

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

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/acdphp-laravel-queued-events/health.svg)

```
[![Health](https://phpackages.com/badges/acdphp-laravel-queued-events/health.svg)](https://phpackages.com/packages/acdphp-laravel-queued-events)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.6M31](/packages/league-geotools)[illuminate/bus

The Illuminate Bus package.

6046.3M542](/packages/illuminate-bus)[uecode/qpush-bundle

Asynchronous processing for Symfony using Push Queues

1672.5M2](/packages/uecode-qpush-bundle)[belvg/module-sqs

N/A

1544.6k](/packages/belvg-module-sqs)[bsidev/bitrix-queue

Queues for Bitrix CMS

232.8k](/packages/bsidev-bitrix-queue)[mayconbordin/l5-stomp-queue

Stomp Queue Driver for Laravel 5

121.1k](/packages/mayconbordin-l5-stomp-queue)

PHPackages © 2026

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