You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This API wrapper is a lightweight alternative to the official [Amazon aws-sdk-for-php](http://aws.amazon.com/sdkforphp) for access to Amazon SNS (Simple Notification Service) using PHP
3
4
4
5
Find out more about Amazon SNS here - http://aws.amazon.com/sns
5
6
6
7
To use this wrapper you must be using PHP5 with cURL, and have an [Amazon AWS account](http://aws.amazon.com)
7
8
8
-
## Basic Use ##
9
-
Download the latest version: https://github.com/chrisbarr/AmazonSNS-PHP-API/tarball/master
10
-
11
-
Include the class on your page:
12
-
13
-
include('lib/amazonsns.class.php');
14
-
15
-
Create a connection to the API:
9
+
## Basic Use
10
+
Install using [Composer](https://getcomposer.org/) on the command line:
11
+
```
12
+
$ composer require chrisbarr/amazon-sns-php-api
13
+
```
16
14
17
-
$AmazonSNS = new AmazonSNS(AMAZON_ACCESS_KEY_ID, AMAZON_SECRET_ACCESS_KEY);
15
+
Or add it to your composer.json file:
18
16
19
-
Create a Topic:
17
+
```
18
+
{
19
+
...
20
+
"require": {
21
+
"chrisbarr/amazon-sns-php-api": "~1.0"
22
+
}
23
+
}
24
+
```
20
25
21
-
$topicArn = $AmazonSNS->createTopic('My New SNS Topic');
0 commit comments