PHPackages                             bonlineza/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. bonlineza/clickatell

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

bonlineza/clickatell
====================

Standalone PHP library to integrate with the Clickatell SMS gateway

v4.0.2(6y ago)013.3k↓43.8%MITPHPPHP &gt;=5.5

Since Jun 16Pushed 6y agoCompare

[ Source](https://github.com/bonlineza/clickatell)[ Packagist](https://packagist.org/packages/bonlineza/clickatell)[ Docs](https://arcturial.github.com)[ RSS](/packages/bonlineza-clickatell/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (24)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.
});
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 84.8% of commits — single point of failure

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.

###  Release Activity

Cadence

Every ~124 days

Recently: every ~220 days

Total

19

Last Release

2474d ago

Major Versions

1.0.4 → 2.0.02014-12-29

2.x-dev → 3.0.02017-03-10

3.x-dev → v4.02017-10-09

PHP version history (2 changes)1.0.0PHP &gt;=5.3.3

3.x-devPHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/540113?v=4)[Shaun van Tonder](/maintainers/countnoobula)[@countnoobula](https://github.com/countnoobula)

![](https://avatars.githubusercontent.com/u/1152858?v=4)[bOnline](/maintainers/bonline)[@bonline](https://github.com/bonline)

---

Top Contributors

[![arcturial](https://avatars.githubusercontent.com/u/1466729?v=4)](https://github.com/arcturial "arcturial (95 commits)")[![petrot](https://avatars.githubusercontent.com/u/4799473?v=4)](https://github.com/petrot "petrot (4 commits)")[![jonnywilliamson](https://avatars.githubusercontent.com/u/2513663?v=4)](https://github.com/jonnywilliamson "jonnywilliamson (4 commits)")[![Basster](https://avatars.githubusercontent.com/u/1265783?v=4)](https://github.com/Basster "Basster (2 commits)")[![dTHQb](https://avatars.githubusercontent.com/u/5469144?v=4)](https://github.com/dTHQb "dTHQb (2 commits)")[![etiennemarais](https://avatars.githubusercontent.com/u/4479918?v=4)](https://github.com/etiennemarais "etiennemarais (2 commits)")[![willemwe0](https://avatars.githubusercontent.com/u/38206765?v=4)](https://github.com/willemwe0 "willemwe0 (1 commits)")[![jwasilewski-bit](https://avatars.githubusercontent.com/u/224731308?v=4)](https://github.com/jwasilewski-bit "jwasilewski-bit (1 commits)")[![arcadas](https://avatars.githubusercontent.com/u/5682734?v=4)](https://github.com/arcadas "arcadas (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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