Download the PHP package macellan/onesignal without Composer
On this page you can find all versions of the php package macellan/onesignal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download macellan/onesignal
More information about macellan/onesignal
Files in macellan/onesignal
Package onesignal
Short Description OneSignal notifications channel for Laravel
License MIT
Homepage https://macellan.net/
Informations about the package onesignal
OneSignal Notifications Channel for Laravel
This package makes it easy to send push notifications using OneSignal with Laravel 9.0 and 10.0, 11.0
This plugin sends notifications only with OneSignal Player ID.
Installation
You can install this package via composer:
Settings
Add your OneSignal appId to your config/services.php:
Usage
You can use the channel in your via() method inside the notification:
You can change appId of a specific notification, just add the setAppId() method
In your notifiable model, make sure to include a routeNotificationForOneSignal() method.
On-Demand Notifications
Sometimes you may need to send a notification to someone who is not stored as a "user" of your application. Using the Notification::route method, you may specify ad-hoc notification routing information before sending the notification:
Credits
All versions of onesignal with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.2
illuminate/notifications Version ^9.0|^10.0|^11.0
illuminate/support Version ^9.0|^10.0|^11.0
illuminate/http Version ^9.0|^10.0|^11.0