rennokki/laravel-sns-events
Handle AWS SNS webhooks in Laravel with ease. This package routes subscription confirmations, notifications, and other SNS messages to your own event listeners, so you can react to AWS events cleanly without boilerplate.
Laravel SNS Events 7.2.0 is primarily a platform-compatibility release: it adds Laravel 10.x and PHP 8.2 support while dropping Laravel 8.x and PHP 8.0. There are no obvious new day-to-day features in the release notes, so treat 7.2.0 as an upgrade gate rather than a feature release.
First steps:
composer require renoki-co/laravel-sns-events:^7.2
php artisan vendor:publish --provider="RenokiCo\LaravelSnsEvents\LaravelSnsEventsServiceProvider"
First practical use case: receive SNS notifications from AWS, validate the SNS envelope, acknowledge quickly, and dispatch a Laravel job that maps the SNS Message payload into your own domain event or workflow.
SubscriptionConfirmation, Notification, and potentially UnsubscribeConfirmation. Confirm subscriptions only after validating the topic ARN and signature-related fields.Message field is often a JSON string, so decode it deliberately and validate its shape before dispatching domain events.MessageId: SNS delivery is at-least-once. Store processed MessageId values or use an idempotency key before running side effects.ShouldQueue on listeners or dispatch jobs from the listener. This keeps the HTTP response fast and gives you retries/backoff control in Laravel.TopicArn and/or envelope metadata and route to different jobs/handlers.composer.json platform constraints, and deployment runtimes before upgrading. Laravel 10/PHP 8.2 support is the main reason to move.SubscribeURL is validated before calling it.AWS_SNS_TOPIC_ARN/config values aligned per environment. A wrong ARN is a common cause of rejected or ignored messages.php artisan config:clear or rebuild config cache in deploy.How can I help you explore Laravel packages today?