2017 © Pedro Peláez
 

library yii-clickatell-smscomponent

Yii component for interfacing with the Clickatell SMS HTTP API

image

odinshat/yii-clickatell-smscomponent

Yii component for interfacing with the Clickatell SMS HTTP API

  • Sunday, November 2, 2014
  • by OdinsHat
  • Repository
  • 1 Watchers
  • 2 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii Clickatell SmsComponent

A component for the Yii framework using the Clickatell HTTP API., (*1)

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., (*2)

Installation

1. Copy SendSmsComponent.php

Copy the main SendSmsComponent.php file into your appfolder/components directory., (*3)

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:, (*4)

    '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';
}

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., (*5)

Further Information

The Versions

02/11 2014

dev-master

9999999-dev https://github.com/OdinsHat/yii-clickatell-smscomponent

Yii component for interfacing with the Clickatell SMS HTTP API

  Sources   Download

BSD-2-Clause

The Requires

  • php >=5.1.0

 

The Development Requires

sms yii clickatell

25/04 2014

v1.0

1.0.0.0 https://github.com/OdinsHat/yii-clickatell-smscomponent

Yii component for interfacing with the Clickatell SMS HTTP API

  Sources   Download

BSD

The Requires

  • php >=5.1.0

 

The Development Requires

sms yii clickatell