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 (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-03-15 (9 months ago) RSS 2.0 feedStarStarStar 52%Total: 195 All time: 8,076 This week: 634Up
Version License PHP version Categories
isms-php 1.0.0MIT/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: 4 packages by
Country: Philippines Philippines
Age: 30
All time rank: 310023 in Philippines Philippines
Week rank: 313 Up3 in Philippines Philippines Up
Innovation award
Innovation award
Nominee: 2x

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

  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:195
This week:0
All time:8,076
This week:634Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2072