Download the PHP package laravel-notification-channels/pushbullet without Composer
On this page you can find all versions of the php package laravel-notification-channels/pushbullet. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laravel-notification-channels/pushbullet
More information about laravel-notification-channels/pushbullet
Files in laravel-notification-channels/pushbullet
Package pushbullet
Short Description Laravel 5.3+ Notifications Pushbullet Driver
License MIT
Homepage https://github.com/laravel-notification-channels/pushbullet
Informations about the package pushbullet
Pushbullet notification channel for Laravel
This package makes it easy to send notifications using Pushbullet with Laravel 5.5+, 6.x, 7.x and 8.x.
Contents
- Installation
- Setting up the Pushbullet service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
To get the latest version of Pushbullet Notification channel for Laravel 5.3, simply require the project using Composer:
Or you can manually update your require block and run composer update
if you choose so:
Setting up the Pushbullet service
In your pushbullet account go to Account settings page. Click Create Access Token
button and you will get access_token.
You need to put it to config/services.php
configuration file. You may copy the example configuration below to get started:
Usage
Routing Pushbullet notifications
In order to send notifications to Pushbullet you need to specify recipient for each notifiable entity. There are currently 2 options: pushbullet email or device id of recipient.
To provide library with correct notification recipient you need to define routeNotificationForPushbullet
method on notifiable entity.
Sending notification to email:
Sending notification to device id:
Sending notification to all subscribers of channel that has tag:
Sending notification to all of the user's devices
via
Method
On notification entity just add \NotificationChannels\Pushbullet\PushbulletChannel::class
item to array that is returned from via
method.
toPushbullet
Method
In your notification class you also should define toPushbullet
method which will return instance of \NotificationChannels\Pushbullet\PushbulletMessage
.
Available Message methods
note()
: set notification type to note (title and message for notification are available)link()
: set notification type to link (title, message and url are available)title($title)
: (string) set notification titlemessage($message)
: (string) set notification messageurl($url)
: (string) set notification url (will be in notification if type islink
)
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
- Alex Plekhanov
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of pushbullet with dependencies
guzzlehttp/guzzle Version ^6.2 || ^7.0
illuminate/notifications Version ~5.5 || ~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0
illuminate/support Version ~5.5 || ~6.0 || ~7.0 || ~8.0 || ~9.0 || ~10.0