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

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

bluedogtraining/guzzle-clickatell
=================================

A Guzzle client for interacting with the Clickatell API

v2.0.5(11y ago)818.2k3[1 issues](https://github.com/bluedogtraining/guzzle-clickatell/issues)MITPHP

Since Jan 8Pushed 11y ago9 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (10)Used By (0)

guzzle-clickatell
=================

[](#guzzle-clickatell)

[![Build Status](https://camo.githubusercontent.com/e0d5b74197bbe8cb6df609236e549ed9921ce157304d37bc31b1a95dcebf1163/68747470733a2f2f7472617669732d63692e6f72672f626c7565646f67747261696e696e672f67757a7a6c652d636c69636b6174656c6c2e706e67)](https://travis-ci.org/bluedogtraining/guzzle-clickatell)

A PHP 5.3+ client for interacting with the Clickatell HTTP API.

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

[](#installation)

Add this to your composer.json by running `composer.phar require bluedogtraining/guzzle-clickatell`.

Usage
-----

[](#usage)

### Create API client

[](#create-api-client)

```
$client = \Bdt\Clickatell\ClickatellClient::factory(array(
    'api_id'   => $apiId,
    'user'     => $user,
    'password' => $password,
));
```

### Authenticate to the API

[](#authenticate-to-the-api)

```
$client->getCommand('Auth')->execute()->getSessionId();
```

### Ping the API to keep the session ID alive

[](#ping-the-api-to-keep-the-session-id-alive)

```
$client->getCommand('Ping', array('session_id' => $sessionId))->execute();
```

### Send a message

[](#send-a-message)

Passing a `session_id` parameter is optional. If it isn't present the client will use the authentication details provided.

```
$result = $client->getCommand('SendMsg', array(
    'to'   => $mobileNumber,
    'text' => $messageContents,
))->execute();

$result->isSuccessful();  // true
$result->getMessageIds(); // array('mobile_number' => 'message_id')
```

A quicker way to send a message is:

```
$result = $client->sendMessage($mobileNumber, $messageContents); // true|false
```

### Query a message

[](#query-a-message)

```
$client->getCommand('QueryMsg', array(
    'apimsgid' => $messageId,
))->execute()->getStatus();
```

Running Tests
-------------

[](#running-tests)

First, install PHPUnit with `composer.phar install --dev`, then run `./vendor/bin/phpunit`.

More Reading
------------

[](#more-reading)

- [guzzlephp.org: Consuming web services using web service clients](http://guzzlephp.org/tour/using_services.html)
- [clickatell.com: HTTP API documentation PDF](http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf)

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 92.5% 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 ~106 days

Recently: every ~199 days

Total

9

Last Release

4072d ago

Major Versions

v1.0.2 → v2.0.02013-02-13

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/608468?v=4)[Blue Dog Training](/maintainers/bluedogtraining)[@bluedogtraining](https://github.com/bluedogtraining)

---

Top Contributors

[![jwpage](https://avatars.githubusercontent.com/u/52687?v=4)](https://github.com/jwpage "jwpage (49 commits)")[![zakharovvi](https://avatars.githubusercontent.com/u/1424281?v=4)](https://github.com/zakharovvi "zakharovvi (2 commits)")[![merk](https://avatars.githubusercontent.com/u/278097?v=4)](https://github.com/merk "merk (1 commits)")[![ryan-senn](https://avatars.githubusercontent.com/u/1097394?v=4)](https://github.com/ryan-senn "ryan-senn (1 commits)")

---

Tags

Guzzlesmsclickatell

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[bradfeehan/desk-php

PHP client for Desk.com v2 API based on Guzzle

2281.4k](/packages/bradfeehan-desk-php)[openapi/openapi-sdk

Minimal and agnostic PHP SDK for Openapi® (https://openapi.com)

161.5k1](/packages/openapi-openapi-sdk)

PHPackages © 2026

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