Proposal for "Net_SMS"

» Metadata » Status
  • Category: Networking
  • Proposer: Marko Djukic 
  • License: LGPL
» Description
Flexible class to support multiple SMS drivers

Currently supports the following gateways:

  1. Clickatell (http)
  2. sms2email (http)
  3. Vodafone Italy (smtp)
  4. (Gammu driver will also be available as soon as I get my handset connection working again)

Sample code:

require_once 'Net/SMS.php';
$gateway = &Net_SMS::singleton('sms2email_http', array('user' => 'foo', 'password' => 'bar'));
$message = array('to' => array('+393471234567'), 'text' => 'send me a test message');
$response = $gateway->send($message);

Some of the features of Net_SMS are:

  1. Subclasses advertise information and params about themselves, allowing for intelligent integration in apps.
  2. Cascading layers of params that allow for customisation of choices allowed to end user, or forcing of defaults.
  3. Aims to be universal in its support for drivers/gateways, whether they are remote servers or local hardware.

As a side note, classes are currently in active development, they are running on several live installs and are used by Horde's Swoosh application.
» Dependencies » Links
  • HTTP_Request (optional)
  • Mail (optional)
» Timeline » Changelog
  • First Draft: 2004-04-22
  • Proposal: 2004-04-22
  • Call for Votes: 2004-05-04
  • Marko Djukic
    [2004-04-23 07:35 UTC]

    Added a link to the Horde CVS.