Skip to content

php api for any sms gateway ,can be integrated on any php application

Notifications You must be signed in to change notification settings

wasksofts/php-sms-gateway

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

php-sms-gateway

php api for any sms gateway ,can be integrated on any php application

usage

 //initialize setting
require_once('sms_api.php');

send sms

GET METHOD

 //for get method service
 //dont modify {recipient}& {message} if you dont know how it work
$url = "https://example.com/username=xxx&password=hhh&recipient={recipient}&messsage={message}";
$sms = new sms_api(['link'=>$url]);
$data['recipients'] ="";
$data['message'] ="";
$sms->send('GET', $data, NULL));

POST METHOD

//for post method service
$curl_post_data =['recipient'=>'','messsage'=>''];
$header = ['apikey'=>''];

$sms->send('POST', json_encode($curl_post_data), $header));

//return response
$sms->get_return_data();

About

php api for any sms gateway ,can be integrated on any php application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%