junker / onesignal-service-provider
OneSignal Service Provider for Silex
0.1.1
2018-12-24 12:26 UTC
Requires
- norkunas/onesignal-php-api: ^1.5
- php-http/guzzle6-adapter: ^1.0
- silex/silex: 1.*
This package is auto-updated.
Last update: 2024-11-25 08:21:59 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();