PHPackages                             impalago/t-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. [HTTP &amp; Networking](/categories/http)
4. /
5. impalago/t-clickatell

ActiveLibrary[HTTP &amp; Networking](/categories/http)

impalago/t-clickatell
=====================

Standalone PHP library to integrate with the Clickatell SMS gateway

012PHP

Since Apr 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/impalago/t-clickatell)[ Packagist](https://packagist.org/packages/impalago/t-clickatell)[ RSS](/packages/impalago-t-clickatell/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP library for the Clickatell Platform
=======================================

[](#php-library-for-the-clickatell-platform)

Master: [![Build Status](https://camo.githubusercontent.com/39ae79d2602a8104e45353300749d31ed887576e360f1407c029cf71a7f6c6fa/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f61726374757269616c2f636c69636b6174656c6c2e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/arcturial/clickatell)

This library allows integration with the new [Clickatell](https://portal.clickatell.com) website.

**Please Note:** Customers with accounts registered on the old [central.clickatell.com](https://central.clickatell.com) should use the tagged released or dev branches for version 2 of the repository, version 3 and up is for the new platform and older accounts will not work with this.

Usage
-----

[](#usage)

The new APIs only support `sendMessage` call and webhooks for outgoing and inbound messages via a *RESTful* interface.

```
use Clickatell\Rest;
use Clickatell\ClickatellException;

$clickatell = new \Clickatell\Rest('token');

// Full list of support parameters can be found at https://www.clickatell.com/developers/api-documentation/rest-api-request-parameters/
try {
    $result = $clickatell->sendMessage(['to' => ['27111111111'], 'content' => 'Message Content']);

    foreach ($result['messages'] as $message) {
        var_dump($message);

        /*
        [
            'apiMsgId'  => null|string,
            'accepted'  => boolean,
            'to'        => string,
            'error'     => null|string
        ]
        */
    }

} catch (ClickatellException $e) {
    // Any API call error will be thrown and should be handled appropriately.
    // The API does not return error codes, so it's best to rely on error descriptions.
    var_dump($e->getMessage());
}
```

### Status/Reply Callback

[](#statusreply-callback)

After configuring your webhooks/callbacks inside the developer portal, you can use the static callback methods to listen for web requests from Clickatell. These callbacks will extract the supported fields from the request body.

```
use Clickatell\Rest;
use Clickatell\ClickatellException;

// Outgoing traffic callbacks (MT callbacks)
Rest::parseStatusCallback(function ($result) {
    var_dump($result);
    // This will execute if the request to the web page contains all the values
    // specified by Clickatell. Requests that omit these values will be ignored.
});

// Incoming traffic callbacks (MO/Two Way callbacks)
Rest::parseReplyCallback(function ($result) {
    var_dump($result);
    // This will execute if the request to the web page contains all the values
    // specified by Clickatell. Requests that omit these values will be ignored.
});
```

Issues/Contributions
--------------------

[](#issuescontributions)

Found a bug or missing a feature? Log it [here](https://github.com/clickatell/clickatell-php/issues) and we will take a look.

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8862864?v=4)[Ivan Kolesnikov](/maintainers/impalago)[@impalago](https://github.com/impalago)

### Embed Badge

![Health badge](/badges/impalago-t-clickatell/health.svg)

```
[![Health](https://phpackages.com/badges/impalago-t-clickatell/health.svg)](https://phpackages.com/packages/impalago-t-clickatell)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87930.4k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.3M84](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69122.6k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
