Skip to content

ringtrail/laravel-sns-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Broadcasting SNS Driver

This package is currently in an alpha state, and does not yet work in Lumen.

Usage

In config/broadcasting.php set the default driver to 'sns' and add configuration options like this:

'default' => 'sns,
'connections' => [
	...
	'sns' => [
        'driver' => 'sns',
        'aws_key' => env('AWS_SNS_KEY'),
        'aws_secret' => env('AWS_SNS_SECRET'),
        'aws_region' => env('AWS_SNS_REGION')
    ],
    ...
]

In config/app.php, add the SNS Service Provider to your Providers array:

'providers' => [
    ...
    Ringtrail\LaravelSns\SnsBroadcastServiceProvider::class,
    ...
]

Follow the event broadcasting instructions in the Laravel documentation. Your channel will be any SNS topic you've already created in the AWS console.

About

SNS Driver for Illuminate Broadcasting Package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages