Skip to content

spring-edge/codeigniter-sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Codeigniter SMS Helper

This repository contains a Helper for codeigniter to send sms using Spring Edge (https://www.springedge.com) APIs

Requirements

  • Sign up for a free Trail Messaging account
  • Create a new apikey from developers section of sms account
  • Setup sender name for sms account.
  • A working envounment to run codeigniter.

Installation

You can copy entire repository or just replace helper file sendsms_helper.php from application/helpers/ directory. Configure API key and Sender name in helper.

Usage

Load Helper:

$this->load->helper('sendsms_helper');

Example of sending message:

//call this function to send sms
sendsms( '919918xxxxxx', 'Hello, This is a test message from spring edge' ); 

Success Response:

{
 "groupID":xxxxxx,
 "MessageIDs":"xxxxxxx-xx",
 "status":"AWAITED-DLR"
}

Or in case of an error:

{
  "error":"Invalid Mobile Numbers"
}

Support

For any support or query please visit: https://www.springedge.com

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published