PHPackages                             chrisbarr/amazon-sns-php-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. chrisbarr/amazon-sns-php-api

ActiveLibrary[HTTP &amp; Networking](/categories/http)

chrisbarr/amazon-sns-php-api
============================

Amazon SNS PHP API

1.8.0(8y ago)69228.6k23MITPHPPHP &gt;=5.2

Since Mar 4Pushed 8y ago14 watchersCompare

[ Source](https://github.com/chrisbarr/AmazonSNS-PHP-API)[ Packagist](https://packagist.org/packages/chrisbarr/amazon-sns-php-api)[ Docs](https://github.com/chrisbarr/AmazonSNS-PHP-API)[ RSS](/packages/chrisbarr-amazon-sns-php-api/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (8)DependenciesVersions (14)Used By (0)

Amazon SNS PHP API
==================

[](#amazon-sns-php-api)

[![Latest Stable Version](https://camo.githubusercontent.com/f73a36af6f9f08473cd57366810b3e7532dd11a95aca2dfbe503523ab8ef8cea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368726973626172722f616d617a6f6e2d736e732d7068702d6170692e737667)](https://packagist.org/packages/chrisbarr/amazon-sns-php-api)[![PHP from Packagist](https://camo.githubusercontent.com/adfc89d989639d0925351c0bebe40777fda8c926d7caec7a79f2e035bcbad901/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6368726973626172722f616d617a6f6e2d736e732d7068702d6170692e737667)](https://camo.githubusercontent.com/adfc89d989639d0925351c0bebe40777fda8c926d7caec7a79f2e035bcbad901/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6368726973626172722f616d617a6f6e2d736e732d7068702d6170692e737667)

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

Find out more about Amazon SNS here -

To use this wrapper you must be using PHP5 with cURL, and have an [Amazon AWS account](http://aws.amazon.com)

Basic Use
---------

[](#basic-use)

Install using [Composer](https://getcomposer.org/) on the command line:

```
$ composer require chrisbarr/amazon-sns-php-api

```

Or add it to your composer.json file:

```
{
	...
	"require": {
		"chrisbarr/amazon-sns-php-api": "~1.0"
	}
}

```

Example usage:

```
