PHP Classes

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

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 52%Total: 237 All time: 8,067 This week: 455Up
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: 247922 in Philippines Philippines
Week rank: 192 Up3 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 (9)  
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 (9)  /  src  
File Role Description
Files folder imageISMS (4 files)

  Files folder image Files (9)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:237
This week:0
All time:8,067
This week:455Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:75%StarStarStarStar
Documentation:75%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:52%StarStarStar
Rank:2401