New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

descom/aws-sns-notification

Package to Laravel to received notification from AWS SNS
2,825
Install
composer require descom/aws-sns-notification
Latest Version:1.3.0
PHP:^8.3
Laravel:12 · 13
Older releases:9 · 10 · 11
License:MIT
Last Updated:Apr 8, 2026
Links: GitHub  ·  Packagist
Maintainer: cesargb

AWS SNS Notifications for Laravel Apps

tests analyze style

Install

composer require descom/aws-sns-notification

Usage

Create en SNS a subscription HTTPS to a topic

https://localhost:8000/aws/sns/webhook

Capture Events

TopicSubscriptionRequest
use Descom\AwsSnsNotification\Events\TopicSubscriptionRequest;
use Illuminate\Support\Facades\Http;

class SnsSubscriptionConfirmation
{
    public function handle(TopicSubscriptionRequest $event): void
    {
        logger()->info('SNS subscription request', [
            'topic' => $event->topicArn(),
        ]);

        // Confirm the subscription by sending a GET request to the SubscribeURL

        Http::get($event->subscribeUrl());
    }
}
TopicNotification
use Descom\AwsSnsNotification\Events\TopicNotification;
use Illuminate\Support\Facades\Http;

class SnsNotificationLogger
{
    public function handle(TopicNotification $event): void
    {
        logger()->info('SNS Notification received', [
            'topic' => $event->topicArn(),
            'subject' => $event->subject(),
            'message' => $event->toJson(),
        ]);
    }
}

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

429,221,767 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

403,217,078 4,664

Version History

Version Released PHP Laravel License
1.3.0 ^8.3 ^12.0|^13.0 MIT
1.2.0 ^8.3 ^11.0|^12.0 MIT
1.1.0 ^8.1 ^9.0|^10.0|^11.0 MIT
1.0.1 ^8.1 ^9.0|^10.0 MIT
1.0.0 ^8.1 ^9.0|^10.0 MIT