{"id":37000376,"url":"https://github.com/brefphp/symfony-messenger-sns","last_synced_at":"2026-01-14T00:02:36.212Z","repository":{"id":62496878,"uuid":"193925748","full_name":"brefphp/symfony-messenger-sns","owner":"brefphp","description":"[DEPRECATED] Installs and confgures SNS with Symfony Messenger","archived":true,"fork":false,"pushed_at":"2019-06-28T09:02:51.000Z","size":11,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-05-01T23:05:53.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brefphp.png","metadata":{"files":{"readme":"Readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-26T14:55:12.000Z","updated_at":"2023-01-28T00:56:16.000Z","dependencies_parsed_at":"2022-11-02T11:32:27.115Z","dependency_job_id":null,"html_url":"https://github.com/brefphp/symfony-messenger-sns","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/brefphp/symfony-messenger-sns","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brefphp%2Fsymfony-messenger-sns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brefphp%2Fsymfony-messenger-sns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brefphp%2Fsymfony-messenger-sns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brefphp%2Fsymfony-messenger-sns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brefphp","download_url":"https://codeload.github.com/brefphp/symfony-messenger-sns/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brefphp%2Fsymfony-messenger-sns/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T00:02:33.622Z","updated_at":"2026-01-14T00:02:36.195Z","avatar_url":"https://github.com/brefphp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Symfony Messenger SNS pack\n\nThis small package helps you install and configure Symfony Messenger with SNS. If installed with Flex you will have most\nthings configured for you. \n\n## Package contents\n\n#### bin/message-consumer\n\nThis file will be \"composer copied\" to your projects bin folder (ie `vendor/bin/message-consumer`). This file receives \nSNS messages and gives them to `App\\Consumer\\SnsConsumer`.\n\n#### src/Consumer.php\n\nThis class is responsible to decode the SNS message and put it back on the message bus. It dispatches events which one can\nsubscribe to in order to modify behavior. Ie, retry failed events. \n\n#### config/sns-consumer.yaml\n\nThis file will be copied by Flex to `config/packages/sns-consumer.yaml`. It contains example configuration for \n[Messenger](https://symfony.com/doc/current/components/messenger.html) and [Enqueue Bundle](https://php-enqueue.github.io/bundle/quick_tour/). \n\n## Bref template\n\nHere is a small snippet to make sure we configure a consumer for SNS with Bref. \n\n```yaml\nResources:\n    Consumer:\n        Type: AWS::Serverless::Function\n        Properties:\n            FunctionName: 'my-app-consumer'\n            Handler: vendor/bin/message-consumer\n            Timeout: 20 # in seconds\n            MemorySize: 2048\n            # ...\n            Events:\n                Sns:\n                    Type: SNS\n                    Properties:\n                        Topic: arn:aws:sns:eu-central-1:xxxxxxx:my_sns_topic\n\n```\n\n## Local Development\n\nWhen working in production we are using SNS but in local development we may want to use something simpler, say RabbitMQ. \n\n```\n# .env\n\n# Production\nAWS_SNS_DSN=enqueue://acme?topic[name]=my_sns_topic\n\n# Development\nAWS_SNS_DSN=amqp://guest:guest@127.0.0.1:5672/%2f/fake_sns \n```\n\nThen you can consume messages are you normally would with `bin/console messenger:consume`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrefphp%2Fsymfony-messenger-sns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrefphp%2Fsymfony-messenger-sns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrefphp%2Fsymfony-messenger-sns/lists"}