PHPackages                             bref/symfony-messenger-sns - 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. bref/symfony-messenger-sns

Abandoned → [bref/symfony-messenger](/?search=bref%2Fsymfony-messenger)ArchivedLibrary[Queues &amp; Workers](/categories/queues)

bref/symfony-messenger-sns
==========================

Installs and confgures SNS with Symfony Messenger

0.2.0(6y ago)6162[1 issues](https://github.com/brefphp/symfony-messenger-sns/issues)MITPHP

Since Jun 26Pushed 6y ago3 watchersCompare

[ Source](https://github.com/brefphp/symfony-messenger-sns)[ Packagist](https://packagist.org/packages/bref/symfony-messenger-sns)[ RSS](/packages/bref-symfony-messenger-sns/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Symfony Messenger SNS pack
==========================

[](#symfony-messenger-sns-pack)

This small package helps you install and configure Symfony Messenger with SNS. If installed with Flex you will have most things configured for you.

Package contents
----------------

[](#package-contents)

#### bin/message-consumer

[](#binmessage-consumer)

This file will be "composer copied" to your projects bin folder (ie `vendor/bin/message-consumer`). This file receives SNS messages and gives them to `App\Consumer\SnsConsumer`.

#### src/Consumer.php

[](#srcconsumerphp)

This class is responsible to decode the SNS message and put it back on the message bus. It dispatches events which one can subscribe to in order to modify behavior. Ie, retry failed events.

#### config/sns-consumer.yaml

[](#configsns-consumeryaml)

This file will be copied by Flex to `config/packages/sns-consumer.yaml`. It contains example configuration for [Messenger](https://symfony.com/doc/current/components/messenger.html) and [Enqueue Bundle](https://php-enqueue.github.io/bundle/quick_tour/).

Bref template
-------------

[](#bref-template)

Here is a small snippet to make sure we configure a consumer for SNS with Bref.

```
Resources:
    Consumer:
        Type: AWS::Serverless::Function
        Properties:
            FunctionName: 'my-app-consumer'
            Handler: vendor/bin/message-consumer
            Timeout: 20 # in seconds
            MemorySize: 2048
            # ...
            Events:
                Sns:
                    Type: SNS
                    Properties:
                        Topic: arn:aws:sns:eu-central-1:xxxxxxx:my_sns_topic
```

Local Development
-----------------

[](#local-development)

When working in production we are using SNS but in local development we may want to use something simpler, say RabbitMQ.

```
# .env

# Production
AWS_SNS_DSN=enqueue://acme?topic[name]=my_sns_topic

# Development
AWS_SNS_DSN=amqp://guest:guest@127.0.0.1:5672/%2f/fake_sns

```

Then you can consume messages are you normally would with `bin/console messenger:consume`.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

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 ~1 days

Total

2

Last Release

2510d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/329a6111724074f5388e95dd41a03ccf3c43f4bfe1ecf27c94c9efc6f7823228?d=identicon)[mnapoli](/maintainers/mnapoli)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/bref-symfony-messenger-sns/health.svg)

```
[![Health](https://phpackages.com/badges/bref-symfony-messenger-sns/health.svg)](https://phpackages.com/packages/bref-symfony-messenger-sns)
```

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.3M26](/packages/league-geotools)[amphp/parser

A generator parser to make streaming parsers simple.

14952.8M16](/packages/amphp-parser)[amphp/serialization

Serialization tools for IPC and data storage in PHP.

13451.1M18](/packages/amphp-serialization)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[deliciousbrains/wp-background-processing

WP Background Processing can be used to fire off non-blocking asynchronous requests or as a background processing tool, allowing you to queue tasks.

1.1k409.8k6](/packages/deliciousbrains-wp-background-processing)[react/async

Async utilities and fibers for ReactPHP

2238.8M171](/packages/react-async)

PHPackages © 2026

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