dev-master
9999999-dev https://github.com/WAVorster/clickatellClickatell RESTful notifications driver
MIT
The Requires
The Development Requires
by Wade Vorster
laravel sms restful clickatell notifications
Wallogit.com
2017 © Pedro Peláez
Clickatell RESTful notifications driver
This package makes it easy to send notifications using clickatell.com with Laravel 5.3+., (*2)
You can install the package via composer:, (*3)
composer require laravel-notification-channels/clickatell
You must install the service provider:, (*4)
// config/app.php
'providers' => [
...
NotificationChannels\Clickatell\ClickatellServiceProvider::class,
],
Add your Clickatell user, password and api identifier to your config/services.php:, (*5)
// config/services.php
...
'clickatell' => [
'user' => env('CLICKATELL_USER'),
'pass' => env('CLICKATELL_PASS'),
'api_id' => env('CLICKATELL_API_ID'),
],
...
You can use the channel in your via() method inside the notification:, (*6)
use Illuminate\Notifications\Notification;
use NotificationChannels\Clickatell\ClickatellMessage;
use NotificationChannels\Clickatell\ClickatellChannel;
class AccountApproved extends Notification
{
public function via($notifiable)
{
return [ClickatellChannel::class];
}
public function toClickatell($notifiable)
{
return (new ClickatellMessage())
->content("Your {$notifiable->service} account was approved!");
}
}
TODO, (*7)
Please see CHANGELOG for more information what has changed recently., (*8)
bash
$ composer test, (*9)
If you discover any security related issues, please email hello@etiennemarais.co.za instead of using the issue tracker., (*10)
Please see CONTRIBUTING for details., (*11)
The MIT License (MIT). Please see License File for more information., (*12)
Clickatell RESTful notifications driver
MIT
laravel sms restful clickatell notifications