Easy working with AWS SDK and SNS service for Your Laravel 5.4+ Application.
- Main features
- TODO
- Requirements
- Installation
- Usage
- Events
- ConfirmationReceived event
- SubscriptionConfirmationReceived event
- UnsubscribeConfirmationReceived event
- [NotificationReceived event](#notificationreceived event)
- Config File
- Changelog
- Testing
- Contributing
- Security
- Credits
- License
- Integrate AWS SDK to Laravel
- SNS Message handler
- Add unit test scripts
- Make better document
- php >=7.0
- Laravel 5.4+
Begin by pulling in the package through Composer.
$ composer require oanhnn/laravel-aws
Next, if using Laravel 5.5+, you done.
If using Laravel 5.4, You must find the providers
key in your config/app.php
and register the AWS Service Provider.
// config/app.php
'providers' => [
// ...
Laravel\Aws\AwsServiceProvider::class,
],
Find the aliases
key in your config/app.php
and add the AWS facade alias.
// config/app.php
'aliases' => array(
// ...
'AWS' => Laravel\Aws\Facades\Aws::class,
)
Publish package config file with the command:
$ php artisan vendor:publish --provider="Laravel\Aws\AwsServiceProvider"
This event class is parent class of two event classes: SubscriptionConfirmationReceived
and UnsubscribeConfirmationReceived
.
You can listen this event to listen two child events. Eg. ConfirmationHandler
class handle those, it will send request to SubscribeURL
.
This event will be fire when WebHook received a message type SubscriptionConfirmation
This event will be fire when WebHook received a message type UnsubscribeConfirmation
This event will be fire when WebHook received a message type Notification
. You can listen this for your application logic.
Eg. Handle video processing successful by Elastic Transcoding
See all change logs in CHANGELOG
$ git clone [email protected]/oanhnn/laravel-aws.git /path
$ cd /path
$ composer install
$ composer phpunit
Please see CONTRIBUTING for details.
If you discover any security related issues, please email to Oanh Nguyen instead of using the issue tracker.
This project is released under the MIT License.
Copyright © 2018 Oanh Nguyen.