Download the PHP package andreseko/onesignal without Composer
On this page you can find all versions of the php package andreseko/onesignal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package onesignal
Onesignal for Laravel
Introduction
This is a simple OneSignal wrapper library for Laravel. It simplifies the basic notification flow with the defined methods. You can send a message to all users or you can notify a single user. Before you start installing this service, please complete your OneSignal setup at https://onesignal.com and finish all the steps that is necessary to obtain an application id and REST API Keys.
Requirements
Installation
First, you'll need to require the package with Composer:
You only need to do the following if your Laravel version is below 5.5:
Then, update config/app.php
by adding an entry for the service provider.
Then, register class alias by adding an entry in aliases section
Finally, from the command line again, run
Configuration
You need to fill in onesignal.php
file that is found in your applications config
directory.
app_id
is your OneSignal App ID and rest_api_key
is your REST API Key. Also you can override the parameters with your .env
file.
Usage
Send a notification for all platforms
You can easily send a message to all registered users with the command:
Send a notification for iOS only
Sending a message to iOS users:
Send a notification for Android only
Sending a message to Android users:
Get all notifications
Getting all notifications from Onesignal
Please refer to https://documentation.onesignal.com/reference for all customizable parameters.
All versions of onesignal with dependencies
guzzlehttp/guzzle Version ^7.0
illuminate/support Version 5.*|6.*|7.*|8.*|9.*|10.*
symfony/psr-http-message-bridge Version 2.*