2017 © Pedro Peláez
 

library sendsms

Send SMS using Sai Ashirwad Bulk SMS Service

image

saiashirwadinformatia/sendsms

Send SMS using Sai Ashirwad Bulk SMS Service

  • Monday, February 1, 2016
  • by saiashirwadinformatia
  • Repository
  • 5 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Send SMS

Send SMS easily anywhere by registering on http://saiashirwad.in and getting API key., (*1)

Usage

Send SMS

use SaiAshirwadInformatia\SendSMS;

/**
 * Retrieve your key from http://saiashirwad.in/user/#api
 *
 * Connect on support@saiashirwad.com for queries
 */
$apiKey = 'API_KEY';

/**
 * Default is "91"
 */
$countryCode = '91';

/**
 * Seen on receivers phone a 6 characters Sender Id
 *
 * Default is "SAIMSG"
 *
 * Exact length required "6"
 */
$senderId = 'ABCDEF';

/**
 * Please note, this cannot be less than or greater than 6, should be exact 6 characters
 * Available Routes
 *  SendSMS::TRANSACTION_ROUTE => transaction (Received by DND)
 *  SendSMS::PROMOTIONAL_ROUTE => promotional (Ignored by DND)
 *
 * Please note, transaction require's explicit opt-in in your application
 * We may ask you this data, if any complains/reports received
 */
$route = SendSMS::TRANSACTION_ROUTE;

$smsClient = new SendSMS($apiKey, $countryCode, $senderId, $route);

/**
 * Mobile number
 *
 * This can also be comma separate string for multiple phone numbers
 */
$mobile = '8888888888';

/**
 * Message upto 160 characters is considered as "1" credit
 * If it goes beyond the desired limit's credit's are charged accordingly
 */
$message = 'Hello, this is your message!';
$success = $smsClient->send($mobile, $message);

// returns SMS Message Id for tracking
echo $success->getMessage();

Check Balance

use SaiAshirwadInformatia\SendSMS;

/**
 * Retrieve your key from http://saiashirwad.in/user/#api
 *
 * Connect on support@saiashirwad.com for queries
 */
$apiKey = 'API_KEY';

// Default is Transaction route, alternate is SendSMS::PROMOTIONAL_ROUTE
$route = SendSMS::TRANSACTION_ROUTE;

$smsClient = new SendSMS($apiKey);

// Fetch balance for selected route either transaction or promotion
$balance = $smsClient->checkBalance($route);

echo $balance->getCount(); // returns integer of available SMS credits count

For Students / Trail Accounts

Free SMS credits (limited) will be given for college project students from India, drop a mail to support@saiashirwad.com, (*2)

License

MIT License, (*3)

Copyright

Sai Ashirwad Informatia, 2020, (*4)

The Versions

01/02 2016

dev-master

9999999-dev http://saiashirwad.in

Send SMS using Sai Ashirwad Bulk SMS Service

  Sources   Download

MIT

The Requires

 

The Development Requires

sms bulk send free for student package

01/02 2016

1.1.2

1.1.2.0 http://saiashirwad.in

Send SMS using Sai Ashirwad Bulk SMS Service

  Sources   Download

MIT

The Requires

 

The Development Requires

sms bulk send free for student package

17/11 2015

1.1.1

1.1.1.0 http://saiashirwad.in

Send SMS using Sai Ashirwad Bulk SMS Service

  Sources   Download

MIT

The Requires

  • php >=5.3
  • sailabs/simplerest ^1.0

 

The Development Requires

sms bulk send free for student package

12/11 2015

1.1

1.1.0.0 http://saiashirwad.in

Send SMS using Sai Ashirwad Bulk SMS Service

  Sources   Download

MIT

The Requires

  • php >=5.3
  • sailabs/simplerest dev-master

 

The Development Requires

sms bulk send free for student package

11/11 2015

1.0

1.0.0.0 http://saiashirwad.in

Send SMS using Sai Ashirwad Bulk SMS Service

  Sources   Download

MIT

The Requires

  • php >=5.3
  • sailabs/simplerest ^1.0

 

The Development Requires

sms bulk send free for student package