colling-media/laravel-zipwhip-notification-channel

This package is abandoned and no longer maintained. No replacement package was suggested.

ZipWhip notifications driver

v1.0.2 2017-03-08 20:03 UTC

This package is auto-updated.

Last update: 2020-01-22 21:25:01 UTC


README

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

License

The MIT License (MIT). Please see License File for more information.