hariadi/sms

PHP implementation of SMS Service in Malaysia

dev-master 2014-04-05 15:49 UTC

This package is auto-updated.

Last update: 2024-11-24 17:21:41 UTC


README

Build Status

PHP implementation of ISMS Service

Usage

Send SMS:

//require_once 'src/Sms/isms.php';	// not required using composer
$sms = new \Sms\isms( $login, $password );
$sms->setMessage('Some message');
$sms->setNumber('Some number');
$sms->setNumber(array('number1', 'number2'));

$response = $sms->send();
var_dump($response);

Check Balance:

//require_once 'src/Sms/isms.php';	// not required using composer
$sms = new \Sms\isms( $login, $password );

$response = $sms->balance();
var_dump($response);

Schedule SMS:

$sms = new \Sms\isms( $login, $password );
$sms->setMessage('Some message');
$sms->setNumber('Some number');
$sms->setNumber(array('number1', 'number2'));
$sms->schedule($desc, $tr = 'onetime', $date, $hour, $min, $week = 1, $month = 1, $day = 1);

$response = $sms->send();
var_dump($response);

Official Documentation

Documentation for the entire SMS API Integration can be found on the ISMS website.

Contributing

All pull requests should be filed on the development branch hariadi/isms repository.

License

The ISMS PHP Library is open-sourced software licensed under the MIT license