定制 smsalert/php-sdk 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

smsalert/php-sdk

最新稳定版本:1.0

Composer 安装命令:

composer require smsalert/php-sdk

包简介

PHP Library for sending sms

README 文档

README

SMS Alert Logo

SMS Alert PHP library for sending transactional/promotional SMS, through your custom code. Easy to integrate, just write 2 lines of code to send SMS.

To send SMS you need an account on SMS Alert, if you do not have an account, signup for a free demo account, to test the service, then after you can purchase credits to use it in your application.

Installation

You can install smsalert/php-sdk via composer or by downloading the source.

Via Composer:

smsalert/php-sdk is available on Packagist as the smsalert/php-sdk package:

composer require smsalert/php-sdk

Paramerer Details

SMSALERT_USER 	: username of your smsalert account
SMSALERT_PWD 	: password of your smsalert account
MOBILENO	: single or multiple mobile numbers (seperated by comma), with or without country code
TEXT	  	: message content to be sent
SCHEDULE	: future schedule date and time when you wish to send sms

Usage

1. include Class file

include("vendor/autoload.php");
use SMSAlert\Lib\Smsalert\Smsalert;

2. create object and set authentication parameter

$SMSALERT_USER = ''; //change here
$SMSALERT_PWD  = ''; //change here

$smsalert      = (new Smsalert())
		->authWithUserIdPwd($SMSALERT_USER,$SMSALERT_PWD);

3. send sms

$MOBILENO      = ''; //change here
$TEXT          = ''; //change here

$smsalert->setSender('CVDEMO')
         ->send($MOBILENO, $TEXT); 

For Advanced Users

send schedule sms

$MOBILENO      = ''; //change here
$TEXT          = ''; //change here
$SCHEDULE      = ''; //change here

$smsalert->setSender('CVDEMO')
         ->send($MOBILENO, $TEXT, $SCHEDULE); 

set route

$smsalert->setRoute('transactional');

set senderid

$smsalert->setSender('CVDEMO'); 

set force prefix for countrycode

$smsalert->setForcePrefix('91'); 

Support

Email :  support@cozyvision.com
Phone :  (+91)-80-1055-1055

统计信息

  • 总下载量: 198
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-15