PHP Classes
elePHPant
Icontem

iSMS PHP: Send SMS messages and get the balance of iSMS

Recommend this page to a friend!
  Info   View files Documentation   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2018-10-01 (1 hour ago) RSS 2.0 feedStarStarStar 52%Total: 205 All time: 8,087 This week: 400Up
Version License PHP version Categories
isms-php 1.0.1MIT/X Consortium ...5PHP 5, Wireless and Mobile, Web services
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.

  Performance   Level  
Name: Arnel Labarda <contact>
Classes: 5 packages by
Country: Philippines Philippines
Innovation award
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());
}
  Files folder image Files  
File Role Description
Files folder imagesrc (1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file test.php Example Example script

  Files folder image Files  /  src  
File Role Description
Files folder imageISMS (4 files)

  Files folder image Files  /  src  /  ISMS  
File Role Description
  Plain text file Balance.php Class Class source
  Plain text file Message.php Class Class source
  Plain text file Recipient.php Class Class source
  Plain text file SMS.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:205
This week:0
All time:8,087
This week:400Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2115