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

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

maxgaurav/laravel-sns-broadcaster
=================================

Sns Messages as queues using extended laravel sqs driver.

v1.1.0(5y ago)23.2k1[1 PRs](https://github.com/maxgaurav/laravel-sns-broadcaster/pulls)MITPHPPHP ^7.2CI failing

Since Mar 24Pushed 1y ago1 watchersCompare

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

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

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

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

[![Packagist](https://camo.githubusercontent.com/ea4e12fc8000d1f9823238f97e4e9074a6370eda06d0338f2629bb68af94f06c/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f6d61786761757261762f6c61726176656c2d736e732d62726f6164636173746572)](https://packagist.org/packages/maxgaurav/laravel-sns-broadcaster)[![GitHub tag](https://camo.githubusercontent.com/ba15521f295456e2bb383d44b0411f6568c1c1ca97579586af8b21054ebacaa2/68747470733a2f2f62616467656e2e6e65742f6769746875622f7461672f6d61786761757261762f6c61726176656c2d736e732d62726f6164636173746572)](https://github.com/maxgaurav/laravel-sns-broadcaster/releases)[![License](https://camo.githubusercontent.com/5d379694335380f94035bd604d6431c2b6205b3aefc21a541e9cc63c97f0609e/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f6c6963656e73652f6d61786761757261762f6c61726176656c2d736e732d62726f6164636173746572)](LICENSE.txt)[![Downloads](https://camo.githubusercontent.com/44f5310d6c00423f6c16c39d5ccf8eb80b49635a1939f979292fc6f3633acb1e/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f64742f6d61786761757261762f6c61726176656c2d736e732d62726f6164636173746572)](https://packagist.org/packages/maxgaurav/laravel-sns-broadcaster/stats)

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.2
- Laravel &gt;= 6
- SQS driver for laravel
- SNS in AWS

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

[](#installation)

Install using composer

```
composer require maxgaurav/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

30

—

LowBetter than 64% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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 ~134 days

Total

2

Last Release

2106d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a63733a2e778c3eba1701a6c9f4907459127536e788f42baba472fdeb9af34e?d=identicon)[maxgaurav](/maintainers/maxgaurav)

---

Top Contributors

[![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/maxgaurav-laravel-sns-broadcaster/health.svg)

```
[![Health](https://phpackages.com/badges/maxgaurav-laravel-sns-broadcaster/health.svg)](https://phpackages.com/packages/maxgaurav-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)
