dpodium/sms-api
Composer 安装命令:
composer require dpodium/sms-api
包简介
Multiple SMS API Providers packaged together for general SMS sending use.
README 文档
README
Multiple SMS Gateway Providers API packaged together for general SMS sending use.
Ability to configure specific provider to use on specific country dial code.
Requirements
At least php5.5 and above is required to use this module.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require dpodium/sms-api
or add
"dpodium/sms-api": "dev-master"
to the require section of your composer.json file.
Usage
Setup component for usage like such:
$config = []; //Configuration array, see \dpodium\smsapi\components\SmsManager for more information $sms = new \dpodium\smsapi\components\SmsManager(); $sms->config = $config; $sms->test_mode = false;
Use the component like such:
$countryId = '60'; $contactNo = '123456789'; $sms->setPhone($countryId, $contactNo); $sms->sendSms('Hello world!');
For more information and options, see \dpodium\smsapi\components\SmsManager and the individual provider components.
Providers
CM - https://www.smsgateway.to/en
Clickatell - https://www.clickatell.com/
Mobile Ace - N/A
Footnotes
We are not affiliated with the SMS Gateway API Providers in any way. Usage of their services are subjected to their charges which are borne by user using the service.
统计信息
- 总下载量: 188
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-02-05