This package makes it easy to send notifications using clickatell.com with Laravel 5.5.
You can install the package via composer:
composer require laravel-notification-channels/clickatell
You must install the service provider:
// config/app.php
'providers' => [
...
NotificationChannels\Clickatell\ClickatellServiceProvider::class,
],
Add your Clickatell token to your config/services.php
:
// config/services.php
...
'clickatell' => [
'token' => env('CLICKATELL_TOKEN'),
],
...
You can use the channel in your via()
method inside the notification:
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
Please see CHANGELOG for more information what has changed recently.
$ composer test
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Please see CONTRIBUTING for details.
- etiennemarais
- arcturial
- For the Clickatell Client implementation which I leverage on for this wrapper
The MIT License (MIT). Please see License File for more information.