Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2018-10-01 (1 hour ago) | | 52% | | Total: 205 | | All time: 8,087 This week: 400 |
|
Description | | Author |
This package can send SMS messages and get the balance of iSMS.
It can send HTTP requests to the iSMS Web server to send SMS messages to given recipients using an iSMS account user and password.
It can also get the current balance of the iSMS account to learn how many more messages can be sent. | |
|
|
Innovation award
Nominee: 3x |
|
Details
ISMS-PHP
iSMS PHP Client
Please check isms site for the list of response error codes and description.
https://www.isms.com.my/response_result.php
Current features
- Send SMS
- Get Remaining balance
Setup
$ composer.phar install
Sending of SMS example usage
require './vendor/autoload.php';
use ISMS\Recipient;
use ISMS\Message;
use ISMS\SMS;
$recipient = new Recipient('9999999');
$message = new Message($recipient, 'message to send');
$sms = new SMS('username', 'password', $message);
try
{
$sms->send();
}
catch (\Exception $e)
{
var_dump($e->getMessage(), $e->getCode());
}
Get remaining SMS balance
require './vendor/autoload.php';
use ISMS\Balance;
$balance = new Balance('username', 'password');
try
{
echo $balance->get();
}
catch (\Exception $e)
{
var_dump($e->getMessage(), $e->getCode());
}
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.