2017 © Pedro Peláez
 

library brandedsms

Public API for sending SMS via BrandedSMS.Pk Service.

image

itechpk/brandedsms

Public API for sending SMS via BrandedSMS.Pk Service.

  • Monday, April 16, 2018
  • by ashifzubair
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

BrandedSMS.Pk (for Pakistan Mobile Networks)

Public API for sending SMS via BrandedSMS.Pk Service., (*1)

Installation

composer require itechpk/brandedsms

PHP Code

require_once("./vendor/autoload.php");

use Itechpk\Brandedsms\BrandedSms;


//Configuration
$userId = "USER_ID";
$key = "SECRET_KEY";
$mask = "MASK";

//Sms Data
$mobileNo = "92333xxxxxxx";
$msg = "Your message here.";


//creating object
$sms = new BrandedSms();
//setting configuration
$sms->config($userId , $key , $mask);
//sending sms
$sent = $sms->send($mobileNo , $msg);

if($sent)
{
    echo "Sms send.";
}
else 
{
    //$lastCode = null;
    //$lastReply = null;
    //$lastId = null;
    //$lastSts = false;
    echo "Sms failed to send.";
}

The Versions

16/04 2018

dev-master

9999999-dev

Public API for sending SMS via BrandedSMS.Pk Service.

  Sources   Download

MIT

by Khizar Naeem
by Umar Cheema
by Ashif Zubair

mobile itechpk brandedsms pakistan

16/04 2018

1.0.0

1.0.0.0

Public API for sending SMS via BrandedSMS.Pk Service.

  Sources   Download

MIT

by Khizar Naeem
by Umar Cheema
by Ashif Zubair

mobile itechpk brandedsms pakistan