PHPackages                             mtahv3/laravel-queue-snssqs - 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. mtahv3/laravel-queue-snssqs

ActiveLaravel-package[Queues &amp; Workers](/categories/queues)

mtahv3/laravel-queue-snssqs
===========================

Provides ability to handle Laravel Queues from a fan-out SNS/SQS pattern

8.0.0(5y ago)41.7k2[1 issues](https://github.com/mtahv3/laravel-queue-snssqs/issues)MITPHPCI failing

Since Oct 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mtahv3/laravel-queue-snssqs)[ Packagist](https://packagist.org/packages/mtahv3/laravel-queue-snssqs)[ RSS](/packages/mtahv3-laravel-queue-snssqs/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (4)Versions (11)Used By (0)

Laravel Queue Driver For SNS
============================

[](#laravel-queue-driver-for-sns)

In utilizing a fan-out pattern with SNS and SQS the default Laravel Queue system fails as it expects a structured message from the queue that's been serialized by Laravel itself.

This queue driver will allow you to take raw JSON data from an SQS queue that was received from an SNS subscription and map it to the correct job handler in Laravel.

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

[](#installation)

You can install the package through [Composer](http://getcomposer.org/)with the following command

```
composer require mtahv3/laravel-queue-snssqs
```

### Service Provider

[](#service-provider)

The service provider should register with Laravel automatically through a composer hook [Info](https://laravel.com/docs/5.5/packages#package-discovery).

If this causes issues and you want to manually register the service provider manually by adding the following line to the `providers` array in your `config/app.php` file.

```
Mtahv3\LaravelQueueSnsSqs\LaravelQueueSnsSqsServiceProvider::class
```

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

[](#configuration)

To configure the driver you need to add the following element to the `connections` array in `config/queue.php`

```
'snssqs' => [
    'driver' => 'snssqs',
    'key' => env('AWS_ACCESS_KEY_ID'),
    'secret' => env('AWS_SECRET_ACCESS_KEY'),
    'prefix' => env('AWS_SQS_QUEUE_PREFIX'),
    'queue' => env('AWS_SQS_QUEUE_NAME'),
    'region' => env('AWS_REGION'),
    'routes'=> [
        '*TopicName'=>'App\\Jobs\\JobName',
        'AnotherName*'=>'App\\Jobs\\AnotherJob'
    ]
]
```

### Routes

[](#routes)

Messages off the queue are mapped by their SNS topic name. You will need to modify the `routes` element of the array you added previously to map a SNS Topic Name to a Job.

Note: You can use wildcards (\*) in the topic name if you want to ignore suffixes or prefixes in the Topic Name. For example if you prefix `prod` and `test` to your topic names, you could write one route using wildcard to map both prod and test with a single line.

By default, if there is no route set in the configuration file, the driver will attempt to map the TopicName to the same class name in App\\Jobs. For example a TopicName of UserCreated would attempt to map to App\\Jobs\\UserCreated::class if there's no entry in the `routes` array.

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 90.5% 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 ~136 days

Recently: every ~184 days

Total

9

Last Release

2083d ago

Major Versions

5.8.0 → 8.0.02020-10-11

PHP version history (2 changes)5.5.0PHP &gt;=7.0

5.6.0PHP ^7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba5c3aa95421d14f7c11bb78170ac3324e6c424e97d35085f2aa3feeeb0134eb?d=identicon)[mtahv3](/maintainers/mtahv3)

---

Top Contributors

[![mtahv3](https://avatars.githubusercontent.com/u/723225?v=4)](https://github.com/mtahv3 "mtahv3 (19 commits)")[![nnnnathann](https://avatars.githubusercontent.com/u/61154?v=4)](https://github.com/nnnnathann "nnnnathann (1 commits)")[![olivernybroe](https://avatars.githubusercontent.com/u/5870441?v=4)](https://github.com/olivernybroe "olivernybroe (1 commits)")

---

Tags

laravelqueuesnssqs

### Embed Badge

![Health badge](/badges/mtahv3-laravel-queue-snssqs/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

9782.1M162](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

20432.2M1.5k](/packages/illuminate-queue)[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.

45344.0k1](/packages/pressbooks-pressbooks)[rapidez/core

Rapidez Core

1822.4k65](/packages/rapidez-core)

PHPackages © 2026

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