» Metadata |
» Status |
-
Category: Networking
-
Proposer: Marko Djukic
-
License: LGPL
|
-
Status: Finished
- Result: Accepted
- Sum of Votes: 9 (0 conditional)
- Search registered package
|
» Description |
Flexible class to support multiple SMS drivers
Currently supports the following gateways:
- Clickatell (http)
- sms2email (http)
- Vodafone Italy (smtp)
- (Gammu driver will also be available as soon as I get my handset connection working again)
Sample code:
<?php
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:
- Subclasses advertise information and params about themselves, allowing for intelligent integration in apps.
- Cascading layers of params that allow for customisation of choices allowed to end user, or forcing of defaults.
- 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)
|
- PEAR package file (.tgz)
- Package source file (.phps/.htm)
|
» Timeline |
» Changelog |
-
First Draft: 2004-04-22
- Proposal: 2004-04-22
- Call for Votes: 2004-05-04
|
|