junker/onesignal-service-provider

OneSignal Service Provider for Silex

0.1.1 2018-12-24 12:26 UTC

This package is auto-updated.

Last update: 2024-10-25 08:07:36 UTC


README

OneSignal Service Provider for Silex

Requirements

silex 1.x

Installation

The best way to install OneSignalServiceProvider is to use a Composer:

php composer.phar require junker/onesignal-service-provider

Examples

use HSAL\HSAL;
use Junker\Silex\Provider\OneSignalServiceProvider;

$app->register(new OneSignalServiceProvider(), [
    'onesignal.options' => [
        'app_id' => 'my App id',
        'api_key' => 'my REST API key',
        'user_auth_key' => 'my User Auth key'
    ]
]);

$notifications = $app['onesignal']->notifications->getAll();

Documentation

OneSignal PHP Documentation OneSignal API Documentation