PHPackages                             onsetsoftware/sns-push - 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. [API Development](/categories/api)
4. /
5. onsetsoftware/sns-push

ActiveLibrary[API Development](/categories/api)

onsetsoftware/sns-push
======================

Platform agnostic API Wrapper for Amazon SNS

v1.2.1(3y ago)0979[1 PRs](https://github.com/onsetsoftware/sns-push/pulls)MITPHPPHP &gt;=7.2

Since Nov 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/onsetsoftware/sns-push)[ Packagist](https://packagist.org/packages/onsetsoftware/sns-push)[ Docs](https://github.com/onsetsoftware/sns-push)[ RSS](/packages/onsetsoftware-sns-push/feed)WikiDiscussions develop Synced today

READMEChangelogDependencies (5)Versions (11)Used By (0)

SNS Push (for AWS SNS API)
==========================

[](#sns-push-for-aws-sns-api)

> This package provides helper methods to send mobile push notifications with the Amazon (AWS) SNS API.

[![Packagist](https://camo.githubusercontent.com/02e5b36d79a5783a19e1e83e873d53bcd0c035fb836adcbe63cc49ff29d21f32/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6f6e736574736f6674776172652d736e732d2d707573682d627269676874677265656e2e737667)](https://packagist.org/packages/onsetsoftware/sns-push) [![Build Status](https://camo.githubusercontent.com/7194022c7b6341b93c33ef1ccb8c05ecff49da81ccce436c704f68ed43b4a84f/68747470733a2f2f7472617669732d63692e6f72672f6f6e736574736f6674776172652f736e732d707573682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/onsetsoftware/sns-push) [![Packagist](https://camo.githubusercontent.com/c4a68da61e87c99f5bbe1b5b3063a27402fc47e68786357a120d72af5f3de2ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6e736574736f6674776172652f736e732d70757368)](https://camo.githubusercontent.com/c4a68da61e87c99f5bbe1b5b3063a27402fc47e68786357a120d72af5f3de2ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6e736574736f6674776172652f736e732d70757368)

SNS Push is a simple SNS SDK wrapper with a collection of methods to aid in interacting with the AWS SNS API. It works directly with Laravel or can be used as a standalone PHP package.

Prerequisites
=============

[](#prerequisites)

SupportsVersionPHP7.2Platformsios/androidInstalling
==========

[](#installing)

You need to use Composer to install SNS Push into your project:

```
composer require onsetsoftware/sns-push

```

Other PHP Framework (not Laravel) Setup
---------------------------------------

[](#other-php-framework-not-laravel-setup)

You should include the Composer `autoload.php` file if not already loaded:

```
require __DIR__ . '/vendor/autoload.php';
```

Instantiate the SNSPush class with the following required config values:

- account\_id
- access\_key
- secret\_key
- platform\_applications

Also configurable:

- region \[default: eu-west-1\]
- api\_version \[default: 2010-03-31\]
- scheme \[default: https\]

```
