Download the PHP package digiaonline/lumen-sns-middleware without Composer
On this page you can find all versions of the php package digiaonline/lumen-sns-middleware. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download digiaonline/lumen-sns-middleware
More information about digiaonline/lumen-sns-middleware
Files in digiaonline/lumen-sns-middleware
Download digiaonline/lumen-sns-middleware
More information about digiaonline/lumen-sns-middleware
Files in digiaonline/lumen-sns-middleware
Vendor digiaonline
Package lumen-sns-middleware
Short Description Collection of middleware and helpers for dealing with AWS SNS notifications
License MIT
Package lumen-sns-middleware
Short Description Collection of middleware and helpers for dealing with AWS SNS notifications
License MIT
Please rate this library. Is it a good library?
Informations about the package lumen-sns-middleware
lumen-sns-middleware
This library contains a collection of middleware and helpers for dealing with AWS SNS notifications.
Features
- a middleware for validating the signatures of SNS notifications
- middleware for transparently handling subscription and unsubscribe confirmations
- a factory for creating SNS
Message
objects from HttpFoundation request objects (which Lumen uses) - a basic enum class for notification types
Requirements
- PHP >= 7.0
- Lumen >= 5.5
Installation
Add the library as a dependency:
Register the service provider:
Usage
Apply any of the following middleware to your routes:
MessageValidatorMiddleware
- validates requests and throws an exception they don't contain a valid SNS messageHandleSubscriptionConfirmationMiddleware
- automatically confirmsSubscriptionConfirmation
messagesHandleUnsubscribeConfirmationMiddleware
- automatically confirmsUnsubscribeConfirmation
messages
Using a custom HTTP client
If for some reason you need to use a custom HTTP client when validating messages or confirming subscription/unsubscribe
messages, bind an implementation of HttpClientInterface
to your container, e.g.:
License
MIT
Testing
Run composer test
All versions of lumen-sns-middleware with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0
aws/aws-php-sns-message-validator Version ^1.4
illuminate/http Version ^5.5|^6.0
digiaonline/json-helpers Version ^1.0
jalle19/laravel-lost-interfaces Version ^1.2
illuminate/support Version ^5.5|^6.0
aws/aws-php-sns-message-validator Version ^1.4
illuminate/http Version ^5.5|^6.0
digiaonline/json-helpers Version ^1.0
jalle19/laravel-lost-interfaces Version ^1.2
illuminate/support Version ^5.5|^6.0
The package digiaonline/lumen-sns-middleware contains the following files
Loading the files please wait ....