This package makes it easy to send notifications using zipwhip.com with Laravel 5.3.
THIS IS A MODIFIED VERSION OF THE laravel-notification-channels/clickatell PACKAGE. ALL MAIN CREDIT GOES TO THEM, THIS IS JUST A MODIFICATION TO MAKE IT WORK WITH ZIPWHIP.
You can install the package via composer:
composer require colling-media/laravel-zipwhip-notification-channel
You must install the service provider:
// config/app.php
'providers' => [
...
NotificationChannels\ZipWhip\ZipWhipServiceProvider::class,
],
Add your ZipWhip user and password to your config/services.php
:
// config/services.php
...
'zipwhip' => [
'user' => env('ZIPWHIP_USER'),
'pass' => env('ZIPWHIP_PASS'),
],
...
You can use the channel in your via()
method inside the notification:
use Illuminate\Notifications\Notification;
use NotificationChannels\ZipWhip\ZipWhipMessage;
use NotificationChannels\ZipWhip\ZipWhipChannel;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [ZipWhipChannel::class];
}
public function toZipWhip($notifiable)
{
return (new ZipWhipMessage())
->content("Your {$notifiable->service} account was approved!");
}
}
TODO
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
- laravel-notification-channels/clickatell INITIAL LIBRARY - See them for full credits
The MIT License (MIT). Please see License File for more information.