laravel-zipwhip-notification-channel maintained by colling-media
Description
ZipWhip notifications driver
Author
Last update
2017/11/16 18:51
(dev-master)
License
Downloads
235
Tags
ZipWhip notifications channel for Laravel 5.3
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.
Contents
Installation
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,
],
Setting up the ZipWhip service
Add your ZipWhip user and password to your config/services.php:
// config/services.php
...
'zipwhip' => [
'user' => env('ZIPWHIP_USER'),
'pass' => env('ZIPWHIP_PASS'),
],
...
Usage
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!");
}
}
Available methods
TODO
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- laravel-notification-channels/clickatell INITIAL LIBRARY - See them for full credits
License
The MIT License (MIT). Please see License File for more information.