PHPackages                             brightecapital/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. brightecapital/sns

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

brightecapital/sns
==================

Message Queue Amazon SNS Transport (fork and improve from enqueue/sns)

1.0.2(6y ago)012.1k1[1 PRs](https://github.com/brighte-capital/sns/pulls)MITPHPPHP ^7.1.3

Since Feb 19Pushed 5y agoCompare

[ Source](https://github.com/brighte-capital/sns)[ Packagist](https://packagist.org/packages/brightecapital/sns)[ Docs](https://github.com/brightecapital/)[ RSS](/packages/brightecapital-sns/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (9)Used By (0)

Brighte Sns
===========

[](#brighte-sns)

[![Software license](https://camo.githubusercontent.com/bbdd77cc9c23829c447dea1e51596b0137c58f2c62d19014ff13101e2157e5eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e726b2f7072656469732e737667)](LICENSE)[![Version](https://camo.githubusercontent.com/87ed573357c98a9f23528c89053354c50f8461902442f2474daede61a5986507/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f627269676874656361706974616c2f736e732e737667)](https://packagist.org/packages/brightecapital/sns)[![Download](https://camo.githubusercontent.com/017a0efd9558955d84a838437d87ebcb9be130462c5f3ab9e4c83fdd0f179386/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f627269676874656361706974616c2f736e732e737667)](https://packagist.org/packages/brightecapital/sns/stats)[![Build status](https://camo.githubusercontent.com/37973dc4100691b23e04c9c557bb768d0e028bbd45e41d9a1f093c9efc3bbeff/68747470733a2f2f7472617669732d63692e636f6d2f627269676874652d6361706974616c2f736e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/brighte-capital/sns)[![Coverage](https://camo.githubusercontent.com/8c4aa8966359e7ff602986b790b458311791397ad92a17aac85bdeead2e742e2/68747470733a2f2f636f6465636f762e696f2f67682f627269676874652d6361706974616c2f736e732f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/brighte-capital/sns)

Description
===========

[](#description)

This project was forked from [enqueue/sns](https://github.com/php-enqueue/sns) and made the following improvements:

- Move all classes to src
- Rename Tests to tests
- Move examples to tests
- Change namespace to Brighte\\Sns

SnsProducer-&gt;send():

```
public function send(Destination $destination, Message $message): void
    {
        InvalidDestinationException::assertDestinationInstanceOf($destination, SnsDestination::class);
        InvalidMessageException::assertMessageInstanceOf($message, SnsMessage::class);

        $body = $message->getBody();
        if (empty($body)) {
            throw new InvalidMessageException('The message body must be a non-empty string.');
        }

        $topicArn = $this->context->getTopicArn($destination);

        $arguments = [
            'Message' => $message->getBody(),
            'TopicArn' => $topicArn,
        ];

        if ($message->getProperties()) {
            foreach ($message->getProperties() as $name => $value) {
                $arguments['MessageAttributes'][$name] = ['DataType' => 'String', 'StringValue' => $value];
            }
        }

        if ($message->getMessageAttributes()) {
            foreach ($message->getMessageAttributes() as $name => $value) {
                $arguments['MessageAttributes'][$name] = ['DataType' => 'String', 'StringValue' => $value];
            }
        }

        if (null !== ($structure = $message->getMessageStructure())) {
            $arguments['MessageStructure'] = $structure;
        }
        if (null !== ($phone = $message->getPhoneNumber())) {
            $arguments['PhoneNumber'] = $phone;
        }
        if (null !== ($subject = $message->getSubject())) {
            $arguments['Subject'] = $subject;
        }
        if (null !== ($targetArn = $message->getTargetArn())) {
            $arguments['TargetArn'] = $targetArn;
        }

        $result = $this->context->getSnsClient()->publish($arguments);

        if (false == $result->hasKey('MessageId')) {
            throw new \RuntimeException('Message was not sent');
        }

        $message->setSnsMessageId((string) $result->get('MessageId'));
    }
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~47 days

Total

7

Last Release

2318d ago

Major Versions

0.10.0 → 1.0.02019-12-23

### Community

Maintainers

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

---

Top Contributors

[![ASKozienko](https://avatars.githubusercontent.com/u/100460?v=4)](https://github.com/ASKozienko "ASKozienko (2 commits)")[![makasim](https://avatars.githubusercontent.com/u/143206?v=4)](https://github.com/makasim "makasim (2 commits)")[![aldenw](https://avatars.githubusercontent.com/u/4245644?v=4)](https://github.com/aldenw "aldenw (1 commits)")[![Steveb-p](https://avatars.githubusercontent.com/u/3183926?v=4)](https://github.com/Steveb-p "Steveb-p (1 commits)")[![uro](https://avatars.githubusercontent.com/u/5208129?v=4)](https://github.com/uro "uro (1 commits)")[![xavismeh](https://avatars.githubusercontent.com/u/181753?v=4)](https://github.com/xavismeh "xavismeh (1 commits)")

---

Tags

amazonawsqueuemessagingSNS

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/brightecapital-sns/health.svg)

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

###  Alternatives

[enqueue/sqs

Message Queue Amazon SQS Transport

376.3M14](/packages/enqueue-sqs)[aws/aws-php-sns-message-validator

Amazon SNS message validation for PHP

21421.5M91](/packages/aws-aws-php-sns-message-validator)[enqueue/enqueue

Message Queue Library

19820.0M56](/packages/enqueue-enqueue)[enqueue/amqp-tools

Message Queue Amqp Tools

14721.1M12](/packages/enqueue-amqp-tools)[enqueue/laravel-queue

Laravel Queue Extension. It uses Enqueue transports

241477.3k2](/packages/enqueue-laravel-queue)[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)

PHPackages © 2026

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