PHPackages                             flickerleap/clickatell - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. flickerleap/clickatell

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

flickerleap/clickatell
======================

Laravel Notification integration for Clickatell

1.0.5(3y ago)2109MITPHP

Since Aug 23Pushed 3y ago3 watchersCompare

[ Source](https://github.com/flickerleap/clickatell)[ Packagist](https://packagist.org/packages/flickerleap/clickatell)[ RSS](/packages/flickerleap-clickatell/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Clickatell notifications channel
================================

[](#clickatell-notifications-channel)

This package implements Clickatell as a Laravel notification channel.

We drew a lot of inspiration from [laravel-notification-channels/clickatell](https://github.com/laravel-notification-channels/clickatell)

Contents
--------

[](#contents)

- [Installation](#installation)
    - [.env](#.env)
    - [Publish](#publish)
- [Configuration](#configuration)
    - [Default to](#default-to)
    - [Tracking](#tracking)
    - [Callback](#callback)
- [Usage](#usage)
    - [Notifiable](#notifiable)
    - [Notification](#notification)
    - [To](#to)
    - [Call](#call)
- [Testing](#testing)
- [Tests](#tests)
- [Credits](#credits)

Installation
------------

[](#installation)

```
composer require flickerleap/clickatell
```

### .env

[](#env)

```
CLICKATELL_TOKEN=
```

### Publish

[](#publish)

```
php artisan vendor:publish --provider="FlickerLeap\Clickatell\ClickatellServiceProvider"
```

Configuration
-------------

[](#configuration)

### Default to

[](#default-to)

```
CLICKATELL_FIELD=
```

- `CLICKATELL_FIELD` - The default field to use for the `to` if the `routeNotificationForClickatell()` method is not implemented on the notifiable class.

### Tracking

[](#tracking)

Optional tracking logs the send status from Clickatell. `php artisan migrate` needs to be run once enabled.

```
CLICKATELL_TRACK=
CLICKATELL_TRACKING_TABLE=
```

- `CLICKATELL_TRACK` - Tracking true of false.
- `CLICKATELL_TRACKING_TABLE` - Optional table name for tracking.

### Callback

[](#callback)

Optionally, with delivery notifications enabled, set the credentials and URL here. Tracking needs to be enabled. A value of `/clickatellCallback` would be accessed at `https://mysite.com/clickatellCallback`

```
CLICKATELL_CALLBACK_URL=
CLICKATELL_USERNAME=
CLICKATELL_PASSWORD=
```

- `CLICKATELL_CALLBACK_URL` - Callback URL for message delivery updates.
- `CLICKATELL_USERNAME` - Callback credentials.
- `CLICKATELL_PASSWORD` - Callback credentials.

Usage
-----

[](#usage)

### Notifiable

[](#notifiable)

```
