PHP Classes

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    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 237 This week: 1All time: 8,056 This week: 560Up
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.

Picture of Arnel Labarda
  Performance   Level  
Name: Arnel Labarda <contact>
Classes: 6 packages by
Country: Philippines Philippines
Age: 37
All time rank: 248322 in Philippines Philippines
Week rank: 411 Up4 in Philippines Philippines Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Documentation

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:237
This week:1
All time:8,056
This week:560Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2367