Clickatell notifications driver

Package info

github.com/laravel-notification-channels/clickatell

pkg:composer/laravel-notification-channels/clickatell

Statistics

Installs: 10 870

Dependents: 0

Suggesters: 0

Stars: 9

Open Issues: 2

0.1.5 2021-09-20 12:27 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT b30c611e7108671d0a094656f41d82ff91041566

smsnotificationslaravelclickatell

This package is auto-updated.

Last update: 2026-06-20 23:33:49 UTC


README

👁 Latest Version on Packagist
👁 Software License
👁 Build Status
👁 StyleCI
👁 SensioLabsInsight
👁 Quality Score
👁 Code Coverage
👁 Total Downloads

This package makes it easy to send notifications using clickatell.com with Laravel 5.5+, 6.x, 7.x & 8.x.

Contents

Installation

You can install the package via composer:

composer require laravel-notification-channels/clickatell

Setting up the clickatell service

Add your Clickatell user, password and api identifier to your config/services.php:

// config/services.php
...
'clickatell' => [
 'user' => env('CLICKATELL_USER'),
 'pass' => env('CLICKATELL_PASS'),
 'api_id' => env('CLICKATELL_API_ID'),
],
...

Usage

To route Clickatell notifications to the proper phone number, define a routeNotificationForClickatell method on your notifiable entity:

class User extends Authenticatable
{
 use Notifiable;

 /**
 * Route notifications for the Nexmo channel.
 *
 * @param \Illuminate\Notifications\Notification $notification
 * @return string
 */
 public function routeNotificationForClickatell($notification)
 {
 return $this->phone_number; 
 }
}

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!");
 }
}

Available methods

TODO

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Security

If you discover any security related issues, please email hello@etiennemarais.co.za instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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