2017 © Pedro Peláez
 

library isms-php

PHP library for ISMS SMS API

image

aqlx86/isms-php

PHP library for ISMS SMS API

  • Wednesday, March 15, 2017
  • by aqlx86
  • Repository
  • 1 Watchers
  • 0 Stars
  • 537 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

ISMS-PHP

iSMS PHP Client, (*1)

Please check isms site for the list of response error codes and description. https://www.isms.com.my/response_result.php, (*2)

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());
}

The Versions

15/03 2017

dev-master

9999999-dev

PHP library for ISMS SMS API

  Sources   Download

MIT

The Requires

 

15/03 2017

v1.1

1.1.0.0

PHP library for ISMS SMS API

  Sources   Download

MIT

The Requires