PHPackages                             odinshat/yii-clickatell-smscomponent - 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. odinshat/yii-clickatell-smscomponent

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

odinshat/yii-clickatell-smscomponent
====================================

Yii component for interfacing with the Clickatell SMS HTTP API

v1.0(12y ago)0131[1 issues](https://github.com/OdinsHat/yii-clickatell-smscomponent/issues)BSDPHPPHP &gt;=5.1.0

Since Apr 25Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

Yii Clickatell SmsComponent
===========================

[](#yii-clickatell-smscomponent)

A component for the Yii framework using the [Clickatell](http://www.clickatell.co.uk/) HTTP API.

Able to send single SMS or start a batch session and send batch text messages. See the Clickatell HTTP API documentation for further details on what this entails.

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

[](#installation)

### 1. Copy SendSmsComponent.php

[](#1-copy-sendsmscomponentphp)

Copy the main `SendSmsComponent.php` file into your `appfolder/components` directory.

### 2. Complete Configuration

[](#2-complete-configuration)

In your Yii config file under the components section be sure to add the following details within components as a seperate settings array called smsSend:

```
    'components'=>array(
        'smsSend'=>array(
            'class' => 'application.components.SendSmsComponent',
            'api_user'  => 'API username',
            'api_pass'  => 'API password',
            'api_from'  => 'FromName',
            'api_id'    => 0000000
        ),
        [...]
    ),
```

Usage
-----

[](#usage)

### Sending a single text

[](#sending-a-single-text)

```
$sms = Yii::app()->smsSend;
$sms->postSms('070000000', "Some message", "SenderName");
```

### Getting query coverage for a phone number

[](#getting-query-coverage-for-a-phone-number)

```
$sms = Yii::app()->smsSend;
if($sms->queryCoverage(070000000)){
    echo 'Can send';
}
```

### Sending batch messages

[](#sending-batch-messages)

To follow. It is possible to do if you can work with the source to figure it yourself until I can extract an example from our exiting system.

Further Information
-------------------

[](#further-information)

- [Yii PHP Framework](http://yiiframework.com)
- [Yii Extension Site Page](http://www.yiiframework.com/extension/clickatell-smscomponent/)
- [Clickatell HTTP API documentation (pdf)](http://www.clickatell.com/downloads/http/Clickatell_HTTP.pdf)
- This component was originally adapted from a CakePHP component I made in 2008 available [here](https://code.google.com/p/clickatell-sms-cakephp/) (not maintained).

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4400d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1061673?v=4)[Doug](/maintainers/OdinsHat)[@OdinsHat](https://github.com/OdinsHat)

---

Top Contributors

[![OdinsHat](https://avatars.githubusercontent.com/u/1061673?v=4)](https://github.com/OdinsHat "OdinsHat (24 commits)")

---

Tags

smsyiiclickatell

### Embed Badge

![Health badge](/badges/odinshat-yii-clickatell-smscomponent/health.svg)

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

###  Alternatives

[mdmsoft/yii2-admin

RBAC Auth manager for Yii2

1.2k1.5M37](/packages/mdmsoft-yii2-admin)[infobip/infobip-api-php-client

PHP library for consuming Infobip's API

921.8M10](/packages/infobip-infobip-api-php-client)[esendex/sdk

Send SMS from your application using the Esendex API

22924.5k4](/packages/esendex-sdk)[mediaburst/clockworksms

ClockworkSMS, International SMS API

45143.7k4](/packages/mediaburst-clockworksms)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)[greensms/greensms

GREENSMS API: SMS, WhatsApp, Viber, VK, Voice, Call, HLR

2629.6k](/packages/greensms-greensms)

PHPackages © 2026

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