PHPackages                             acdphp/laravel-sns-sqs-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. acdphp/laravel-sns-sqs-queue

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

acdphp/laravel-sns-sqs-queue
============================

Fanout Laravel queue jobs with AWS SNS and SQS for microservices communication.

v1.0.0(2y ago)771MITPHPPHP ^8.0

Since Dec 26Pushed 2y agoCompare

[ Source](https://github.com/acdphp/laravel-sns-sqs-queue)[ Packagist](https://packagist.org/packages/acdphp/laravel-sns-sqs-queue)[ RSS](/packages/acdphp-laravel-sns-sqs-queue/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

Laravel SNS-SQS Queue
=====================

[](#laravel-sns-sqs-queue)

[![Latest Stable Version](https://camo.githubusercontent.com/5895a207e07fcc460c8af8b43064b9816e395ca3dade8fb856856f8754c270ac/68747470733a2f2f706f7365722e707567782e6f72672f6163647068702f6c61726176656c2d736e732d7371732d71756575652f76)](https://packagist.org/packages/acdphp/laravel-sns-sqs-queue)

Fanout Laravel queue jobs with AWS SNS and SQS for microservices communication.

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

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

[](#installation)

1. Install the package

    ```
    composer require acdphp/laravel-sns-sqs-queue
    ```
2. Add new queue connection in your `config/queue.php`. *(Similar to default sqs connection but with added `endpoint` and `sns_topic_arn`)*

    ```
    'connections' => [
       ...
       'sns-sqs' => [
          'driver' => 'sns-sqs',
          'key' => env('AWS_ACCESS_KEY_ID'),
          'secret' => env('AWS_SECRET_ACCESS_KEY'),
          'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
          'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
          'queue' => env('SQS_QUEUE', 'default'),
          'suffix' => env('SQS_SUFFIX'),
          'after_commit' => false,
          'endpoint' => env('AWS_ENDPOINT'),
          'sns_topic_arn' => env('SNS_TOPIC_ARN', 'arn:aws:sns:us-east-1:your-account-id:topic'),
      ],
    ]
    ```
3. Usage

    1. Globally set your `QUEUE_CONNECTION` to `sns-sqs`
    2. OR Job specific (recommended to only use this for microservice message jobs): ```
        class MicroserviceMessageJob implements ShouldQueue
        {
            use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;

            public function __construct($yourData, $anotherData)
            {
                $this->onConnection('sns-sqs');
            }
        ```

Notes
-----

[](#notes)

- Fanout Jobs must exist in all applications that should handle the message with the same namespace and constructor arguments for it work properly.
- Publishing to SNS uses HTTP/S protocol which is synchronous. This means that your job dispatch will hold off the process until the SNS responds back. Consider using a better technology, for instance, using AMQP (like this [library](https://github.com/vyuldashev/laravel-queue-rabbitmq)) for better performance.

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

921d ago

### 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 (2 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/acdphp-laravel-sns-sqs-queue/health.svg)

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

###  Alternatives

[dusterio/laravel-aws-worker

Run Laravel (or Lumen) tasks and queue listeners inside of AWS Elastic Beanstalk workers

3115.9M](/packages/dusterio-laravel-aws-worker)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[palpalani/laravel-sqs-queue-json-reader

Custom SQS queue reader for Laravel

29127.4k](/packages/palpalani-laravel-sqs-queue-json-reader)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[keboola/storage-api-client

Keboola Storage API PHP Client

10405.9k40](/packages/keboola-storage-api-client)

PHPackages © 2026

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