| Package Data | |
|---|---|
| Maintainer Username: | unicodeveloper |
| Maintainer Contact: | prosperotemuyiwa@gmail.com (Prosper Otemuyiwa) |
| Package Create Date: | 2016-08-14 |
| Package Last Update: | 2016-12-25 |
| Home Page: | http://laravel-notification-channels.com/ |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-02 15:08:06 |
| Package Statistics | |
|---|---|
| Total Downloads: | 7 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 1 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
This package makes it easy to send Jusibe notifications with Laravel 5.3.
You can install the package via composer:
composer require unicodeveloper/laravel-notification-channel-jusibe
You must install the service provider:
// config/app.php
'providers' => [
...
NotificationChannels\Jusibe\JusibeServiceProvider::class,
],
Add your Jusibe Account Key, Acess Token, and From Number (optional) to your config/services.php:
// config/services.php
...
'jusibe' => [
'key' => env('JUSIBE_PUBLIC_KEY'),
'token' => env('JUSIBE_ACCESS_TOKEN'),
'sms_from' => 'PROSPER'
]
...
Now you can use the channel in your via() method inside the notification:
use NotificationChannels\Jusibe\JusibeChannel;
use NotificationChannels\Jusibe\JusibeMessage;
use Illuminate\Notifications\Notification;
class ValentineDateApproved extends Notification
{
public function via($notifiable)
{
return [JusibeChannel::class];
}
public function toJusibe($notifiable)
{
return (new JusibeMessage())
->content("Your {$notifiable->service} account was approved!");
}
}
In order to let your Notification know which phone are you sending to, add the routeNotificationForJusibe method to your Notifiable model e.g your User Model
public function routeNotificationForJusibe()
{
return $this->phone; // where `phone` is a field in your users table;
}
from(''): Accepts a phone to use as the notification sender.content(''): Accepts a string value for the notification body.Please see CHANGELOG for more information what has changed recently.
$ composer test
If you discover any security related issues, please email prosperotemuyiwa@gmail.com instead of using the issue tracker.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.