powerkernel/yii-aws-sns

Amazon Simple Notification Service for Yii

Installs: 672

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 1

Type:yii-extension

1.0.0 2018-05-31 11:46 UTC

This package is auto-updated.

Last update: 2024-04-16 23:12:23 UTC


README

Amazon Simple Notification Service for Yii 3.0

Latest Stable Version Total Downloads GitHub license

Installation

The preferred way to install this extension is through composer.

Either run

composer require powerkernel/yii-aws-sns "*"

or add

"powerkernel/yii-aws-sns": "*"

to the require section of your composer.json file.

Usage

To use this extension, simply add the following code in your application configuration:

'components' => [
// ...
'sns' => [
            '__class' => powerkernel\sns\AwsSns::class,
            'key' => 'your aws sns key',
            'secret' => 'your aws sns secret',
        ],
// ...        
], 

You can then call AWS SNS functions as follows:

Yii::$app->sns->client->publish($arg);
// ...

For further instructions refer to the AWS Documentation page