dhSimpleSmsPlugin - 1.0.0

Simple SMS Plugin for Symfony

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Dependencies Releases Changelog Contribute
dhSimpleSmsPlugin 1.0.0stable for sf 1.4sf 1.3 MIT
Plugin image
1
user
Sign-in
to change
your status

The simple SMS Plugin allows sending of SMS's via the http://www.clickatell.com SMS gateway.

Introduction

The simple SMS Plugin allows sending of SMS's via the http://www.clickatell.com SMS gateway.

Requirements

You'll need to have an account with clickatell to be able to use this plugin. You can either sign up for one on their site - or drop me a mail and I'll send you back an account with some test credits on.

Clickatell also support 2-way messaging, flash messages, sending ringtones, images, etc.

A clickatell account has 3 primary attributes - username, password and the appID.

This plugin requires the sfWebBrowser plugin to operate. Requests from your application to clickatell.com are performed via http - so you'll need to ensure your firewall rules are set accordingly.

When signing up to Clickatell - select the API product from the list of available products. Once signed up - you can create a new application which will give you an AppID that you can use with this plugin.

On the clickatell admin panel -> Manage My Products -> Add Connection -> HTTP & then fill in the required details. Keep things simple to start with - don't lock down the IP address requests come from and don't enable callbacks.

API

The clickatell API also allows server side callbacks to a url of your chosing for status & delivery information.

It has a very simple but flexible api:

// Construct the message object
$msg = new dhSimpleSMS('appID', 'username','password');

// Query the account balance
$balance = $msg->accountBalance();

// Simply send a message
$messageID = $msg->sendMessage("+CCNNUUMMBBEERR", "message");

// Send a message with extended options
$messageID = $msg->sendMessage(
            "+CCNNUUMMBBEERR", 
            "message",
            array(
                'callback' =>3,
                'deliv_ack' =>1,
                'from' => '+CCNNUUMMBBEERR'
                ));
// Retrieve a status update using a messageID
$status = $msg->queryMessage($messageID);

Developers

Name Status Email
gravatar David Ashwood lead ku.oc.gniknihtderipsni <<ta>> rehsad

License

Show source

Copyright (c) 2004-2008 Francois Zaninotto

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.