colling-media / laravel-zipwhip-notification-channel
ZipWhip notifications driver
Requires
- php: >=5.6.4
- colling-media/zipwhip-php-api: *
- illuminate/events: ^5.3
- illuminate/notifications: ^5.3
- illuminate/support: ^5.3
Requires (Dev)
- mockery/mockery: ^0.9.5
- phpunit/phpunit: 4.*
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
- laravel-notification-channels/clickatell INITIAL LIBRARY - See them for full credits
License
The MIT License (MIT). Please see License File for more information.