clickatell-smscomponent Send single or batch SMS using the Clickatell HTTP API

  1. Requirements
  2. Installation
  3. Usage
  4. Resources

A component for the Yii framework using the Clickatell 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.

Requirements

  • Clickatell account and API access.

Installation

Full and updated usage information can be found at the Github repo.

Copy file to components directory of your Yii install.

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

Sending a single text
$sms = Yii::app()->smsSend;
$sms->postSms('070000000', "Some message", "SenderName");
Getting query coverage for a phone number
$sms = Yii::app()->smsSend;
if($sms->queryCoverage(070000000)){
    echo 'Can send';
}

Resources

0 0
2 followers
246 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Web Service
Developed by: LokisHat
Created on: May 15, 2014
Last updated: 9 years ago

Downloads

show all

Related Extensions