2017 © Pedro Peláez
 

library laravel-zipwhip-notification-channel

ZipWhip notifications driver

image

colling-media/laravel-zipwhip-notification-channel

ZipWhip notifications driver

  • Thursday, November 16, 2017
  • by darkgoldblade01
  • Repository
  • 2 Watchers
  • 0 Stars
  • 218 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 10 % Grown

The README.md

ZipWhip notifications channel for Laravel 5.3

This package makes it easy to send notifications using zipwhip.com with Laravel 5.3., (*1)

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., (*2)

Contents

Installation

You can install the package via composer:, (*3)

composer require colling-media/laravel-zipwhip-notification-channel

You must install the service provider:, (*4)

// config/app.php
'providers' => [
    ...
    NotificationChannels\ZipWhip\ZipWhipServiceProvider::class,
],

Setting up the ZipWhip service

Add your ZipWhip user and password to your config/services.php:, (*5)

// 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:, (*6)

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, (*7)

Changelog

Please see CHANGELOG for more information what has changed recently., (*8)

Contributing

Please see CONTRIBUTING for details., (*9)

Credits

License

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

The Versions