Download the PHP package onsetsoftware/sns-push without Composer

On this page you can find all versions of the php package onsetsoftware/sns-push. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sns-push

SNS Push (for AWS SNS API)

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

Packagist Build Status Packagist

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

Supports Version
PHP 7.2
Platforms ios/android

Installing

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

Other PHP Framework (not Laravel) Setup

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

Instantiate the SNSPush class with the following required config values:

Also configurable:

Laravel Service Provider

If you are a Laravel user, you can make use of the included service provider. Just add SNSPushServiceProvider in your config/app.php:

Add 'sns' config keys to the config/services.php

Add Device to Application

Add a device to a platform application (ios/android) by passing the device token and application key to addDevice().

Remove Device from Application

Remove a device from AWS SNS by passing the Endpoint ARN to removeDevice().

Subscribe Device to Topic

Subscribe a device to a Topic by passing the Endpoint Arn and Topic Arn to subscribeDeviceToTopic().

Remove Device from Topic

Remove a device from a Topic by passing the Subscription Arn to removeDeviceFromTopic().

Sending Push Notifications

SNS Push supports sending notifications to both Topic Endpoint or directly to an Endpoint ARN (Device).

Messages

Messages must implement SNSPush\Messages\MessageInterface. There are a number of utility classes which format push notifications correctly for the various endpoint types.

Phonegap Plugin Push

The package includes two classes to help format messages for use with the Phonegap Plugin Push Cordova package.

For the full api, please consult the source of each of the message types

Send to Device

Simply pass an object implementing SNSPush\Messages\MessageInterface, along with the endpoint ARN. The Endpoint platform must match the message type.

Send to Topic

First you should form your SNSPush\Messages\TopicMessage by passing an array of the Message objects for the enpoints you need to address. Then pass the TopicMessage to the sendPushNotificationToTopic method.

Thanks

This package builds on the work done by ReduGroup.

Licence

MIT License © On Set Software Ltd


All versions of sns-push with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
aws/aws-sdk-php Version ^3.36
aws/aws-php-sns-message-validator Version ^1.4
ext-ctype Version *
ext-mbstring Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package onsetsoftware/sns-push contains the following files

Loading the files please wait ....