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 2mo 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 10% 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://www.gravatar.com/avatar/71c003fd87f23c7baccae5d0da2b2ecf8dd28d755ff1d2d6166bf2aa03c31a3d?d=identicon)[impalago](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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