PHPackages                             ignited/laravel-sns-broadcaster - 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. ignited/laravel-sns-broadcaster

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

ignited/laravel-sns-broadcaster
===============================

Sns Messages as queues using extended laravel sqs driver.

v1.1.1(1y ago)023MITPHPPHP &gt;=7.4 &lt;8.4

Since Mar 24Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ignited/laravel-sns-broadcaster)[ Packagist](https://packagist.org/packages/ignited/laravel-sns-broadcaster)[ Docs](https://github.com/ignited/laravel-sns-broadcaster)[ RSS](/packages/ignited-laravel-sns-broadcaster/feed)WikiDiscussions master Synced 1mo ago

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

Broadcast Events as SNS Topic
=============================

[](#broadcast-events-as-sns-topic)

[![Packagist](https://camo.githubusercontent.com/32d4d4eed7060516f6d66ee279806c22ab33b83f27f7859c0b7f17e6f8883429/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f69676e697465642f6c61726176656c2d736e732d62726f6164636173746572)](https://packagist.org/packages/ignited/laravel-sns-broadcaster)[![GitHub tag](https://camo.githubusercontent.com/70f39cf0cb89575a56e8c8415b64f136a66da7c05d92a5a439d776470c08c663/68747470733a2f2f62616467656e2e6e65742f6769746875622f7461672f69676e697465642f6c61726176656c2d736e732d62726f6164636173746572)](https://github.com/ignited/laravel-sns-broadcaster/releases)[![License](https://camo.githubusercontent.com/6588ebaae6da9414fed29c76be2f5f82ebfbb3adcb378385ef0910760f07d0aa/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f69676e697465642f6c61726176656c2d736e732d62726f6164636173746572)](LICENSE.txt)[![Downloads](https://camo.githubusercontent.com/5ac56bc0f94884b0b0a26c8990e9108079ed1f0c5ef192a959df253ee4f72fc6/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f69676e697465642f6c61726176656c2d736e732d62726f6164636173746572)](https://packagist.org/packages/ignited/laravel-sns-broadcaster/stats)

*(Original forked from [maxgaurav/laravel-sns-broadcaster](https://github.com/maxgaurav/laravel-sns-broadcaster) but this appears to be abandoned)*

The package allows you to broadcast laravel events as sns topic.

The queue also processes standard jobs pushed via laravel.

This package is a great use cases for applications beings deployed to microservices.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4
- Laravel &gt;= 8
- SNS in AWS

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

[](#installation)

Install using composer

```
composer require ignited/laravel-sns-broadcaster
```

The package will automatically register its service provider.

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

[](#configuration)

### Driver setup

[](#driver-setup)

Update your **.env** use the broadcasting driver

```
BROADCAST_DRIVER=sns

```

### Environment Setup

[](#environment-setup)

```
TOPIC_SUFFIX=-dev #leave it blank, if you are trying to deploy base

```

### Broadcaster Configuration Setup

[](#broadcaster-configuration-setup)

In **config/broadcasting.php** add the following driver setup

```
return [

    'null' => [
        'driver' => 'null',
     ],

    'sns' => [
        'driver' => 'sns',
        'region' => env('AWS_DEFAULT_REGION'),
        'key' => env('AWS_ACCESS_KEY_ID'),
        'secret' => env('AWS_SECRET_ACCESS_KEY'),
        'suffix' => env('TOPIC_SUFFIX', '-dev'),
        'arn-prefix' => env('TOPIC_ARN_PREFIX', 'arn:aws:sns:us-east-2:123345666:') // note the arn prefix contains colon

    ],
];
```

Event setup
-----------

[](#event-setup)

In your events implement the **ShouldBroadcast** interface. Then set the topic name to be return through **broadcastOn** method.

```
use Illuminate\Contracts\Broadcasting\ShouldBroadcast;

class SampleEvent implements ShouldBroadcast
{

    /**
     * @inheritDoc
     */
    public function broadcastOn()
    {
        return "you-topic-name"; // the topic without the prefix and suffix. Example user-created. If -dev is suffix then it will automatically appended
    }
}
```

License
-------

[](#license)

The [MIT](https://opensource.org/licenses/MIT) License.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity76

Established project with proven stability

 Bus Factor1

Top contributor holds 59.3% 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 ~765 days

Total

3

Last Release

716d ago

PHP version history (2 changes)v1.0.0PHP ^7.2

v1.1.1PHP &gt;=7.4 &lt;8.4

### Community

Maintainers

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

---

Top Contributors

[![alexw23](https://avatars.githubusercontent.com/u/1505496?v=4)](https://github.com/alexw23 "alexw23 (16 commits)")[![maxgaurav](https://avatars.githubusercontent.com/u/10531584?v=4)](https://github.com/maxgaurav "maxgaurav (8 commits)")[![ankurk91](https://avatars.githubusercontent.com/u/6111524?v=4)](https://github.com/ankurk91 "ankurk91 (3 commits)")

---

Tags

laravelawsSNSBroadcasting

### Embed Badge

![Health badge](/badges/ignited-laravel-sns-broadcaster/health.svg)

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

###  Alternatives

[dusterio/laravel-aws-worker

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

3105.7M](/packages/dusterio-laravel-aws-worker)[joblocal/laravel-sqs-sns-subscription-queue

A simple Laravel service provider which adds a new queue connector to handle SNS subscription queues.

48416.3k](/packages/joblocal-laravel-sqs-sns-subscription-queue)[dusterio/laravel-plain-sqs

Custom SQS connector for Laravel that supports custom format JSON

1352.7M1](/packages/dusterio-laravel-plain-sqs)[pod-point/laravel-aws-pubsub

A Laravel broadcasting driver and queue driver that broadcasts and listens to published events utilising AWS SNS, EventBridge and SQS.

1096.1k](/packages/pod-point-laravel-aws-pubsub)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

3786.5k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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