Code Monkey home page Code Monkey logo

laravel-sns-events's Introduction

Laravel SNS Events

CI codecov StyleCI Latest Stable Version Total Downloads Monthly Downloads License

Laravel SNS Events eases the processing of incoming SNS webhooks using Laravel Events. It leverages a controller that is made to properly listen to SNS HTTP(s) webhooks and trigger events on which you can handle in Laravel, so you just have to focus on writing your logic to handle the events.

๐Ÿค Supporting

If you are using one or more Renoki Co. open-source packages in your production apps, in presentation demos, hobby projects, school projects or so, sponsor our work with Github Sponsors. ๐Ÿ“ฆ

๐Ÿ“ƒ Documentation

The entire documentation is available on Gitbook ๐ŸŒ

๐Ÿ› Testing

Run the tests with:

vendor/bin/phpunit

๐Ÿค Contributing

Please see CONTRIBUTING for details.

๐Ÿ”’ Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

๐ŸŽ‰ Credits

laravel-sns-events's People

Contributors

chancezeus avatar dependabot-preview[bot] avatar dependabot[bot] avatar laravel-shift avatar rennokki avatar stefanzweifel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-sns-events's Issues

Route and Listener setup tips

Very useful library ๐Ÿ‘ Just a few things I noticed when implementing it -

I had to reference the route like this (note the slash at the beginning of the class)
Route::any('/aws/sns', '\Rennokki\LaravelSnsEvents\Http\Controllers\SnsController@handle');

I used the event:generate artisan command to generate the listeners and it added the wrong class declarations at the top of the listeners e.g.

change
use App\Events\Rennokki\LaravelSnsEvents\Events\SnsSubscriptionConfirmation
to
use Rennokki\LaravelSnsEvents\Events\SnsSubscriptionConfirmation

change
use App\Events\Rennokki\LaravelSnsEvents\Events\SnsEvent
to
use Rennokki\LaravelSnsEvents\Events\SnsEvent

Testing on local no longer working

When testing this package locally using Ngrok and AWS SNS notification, the request does not get past the snsMessageIsValid() method in the controller. If the code is commented out, it calls the subscription confirmation.

I have my ENV as local and it does return the $url variable in MessageValidator();
Is there something I'm missing?

SNS with SES

Did you used SNS for SES notifications, like bounced and delivered mails? I installed this package and do verified the SNS notification subscription but not receiving the notification on the application endpoint.

confirmation issue

as per your docs i have made all the settings but from aws confirmation is not happing and getting token issue, please let me know the issue

snsMessageIsValid method returns false in SnsController's handle

Hi, snsMessageIsValid method returns false in SnsController's handle. Problem is in 24. line of SnsController.php. I don't know why because SNS sends me correct values.

Enviroment:

  • PHP 8.1
  • Laravel 9.19

To replicate this error:
1- Configure a rule set to receive email.
2- Send an email to that email.
3- Check the result in ngrok.

SnsEvent Trigger all Events

In future, I will have multiple Events from SNS and I think using SnsEvent::class=>[] from this package trigger all my events from EventServiceProvider. Is there any way I can trigger only specific SNS event?

Depfu Error: No dependency files found

Hello,

We've tried to activate or update your repository on Depfu and couldn't find any supported dependency files. If we were to guess, we would say that this is not actually a project Depfu supports and has probably been activated by error.

Monorepos

Please note that Depfu currently only searches for your dependency files in the root folder. We do support monorepos and non-root files, but don't auto-detect them. If that's the case with this repo, please send us a quick email with the folder you want Depfu to work on and we'll set it up right away!

How to deactivate the project

  • Go to the Settings page of either your own account or the organization you've used
  • Go to "Installed Integrations"
  • Click the "Configure" button on the Depfu integration
  • Remove this repo (renoki-co/laravel-sns-events) from the list of accessible repos.

Please note that using the "All Repositories" setting doesn't make a lot of sense with Depfu.

If you think that this is a mistake

Please let us know by sending an email to [email protected].


This is an automated issue by Depfu. You're getting it because someone configured Depfu to automatically update dependencies on this project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.