Download the PHP package laravel-notification-channels/pubnub without Composer
On this page you can find all versions of the php package laravel-notification-channels/pubnub. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-notification-channels/pubnub
More information about laravel-notification-channels/pubnub
Files in laravel-notification-channels/pubnub
Package pubnub
Short Description PubNub Notifications Channel for Laravel
License MIT
Homepage https://github.com/laravel-notification-channels/pubnub
Informations about the package pubnub
PubNub Notifications Channel for Laravel
PubNub Notifications Channel for Laravel 5.5+ & 6.0. This channel allows you to send message payloads as well as push notifications to iOS, Android and Windows using PubNub.
Contents
- Installation
- Setting up the PubNub service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
Add the service provider to your config/app.php
Setting up the PubNub service
Add your PubNub Publish Key, Subscribe Key and Secret Key to your config/services.php
Usage
Alternatively you may supply a channel specifically related to your notifiable by implementing the routeNotificationForPubnub()
method.
Sending a push notification. You may chain any of the withiOS()
, withAndroid()
and withWindows()
methods to add push notifications to the message with each of the platforms.
Available methods
channel('')
: Specifies the channel the message should be sent totitle('')
: Sets the title of the messagebody('')
: Sets the body of the messagestoreInHistory(true)
: If the message should be stored in the Pubnub historybadge(1)
: Sets the number to display on the push notification's badge (iOS)sound('')
: Sets the sound for the push notification (iOS, Android)icon('')
: Sets the push notification icon (Android)type('')
: Sets the type of push notification (Windows)delay(450)
: Sets the delay in seconds for the push notification (Windows)setData($key, $value)
: Adds any extra data to the payload you may needsetOption($key, $value)
: Sets any option to the push notification (iOS, Android, Windows)withiOS(PubnubMessage $message)
: Sets the push notification for iOSwithAndroid(PubnubMessage $message)
: Sets the push notification for AndroidwithWindows(PubnubMessage $message)
: Sets the push notification for Windows
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Contributing
Please see CONTRIBUTING for details.
Credits
- iWader
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of pubnub with dependencies
illuminate/notifications Version ~5.5 || ~6.0
illuminate/queue Version ~5.5 || ~6.0
illuminate/support Version ~5.5 || ~6.0
pubnub/pubnub Version ^3.8