messageway/messagewaylaravel
最新稳定版本:v2.0.1
Composer 安装命令:
composer require messageway/messagewaylaravel
包简介
This package allows you to connect to MSGWay.com server from your laravel applications.
README 文档
README
MessageWay Laravel
This package allows you to connect to MSGWay.com server from your laravel applications.
Available Methods
- SMS (Iran: 2000, 3000, 9000, 50004)
- Global SMS (with Twilio)
- Messenger
- IVR
Installation
Via Composer
$ composer require messageway/messagewaylaravel
Usage
ApiKey
Please register on MSGWay.com and get apiKey
Environment
Please add environment on .env file
MESSAGE_WAY_APIKEY=''
Send via SMS
use MessageWay\MessageWayLaravel\Facades\MessageWayLaravel; $message = MessageWayLaravel::sendViaSMS('MOBILE', $templateID); dump($message);
Send via GapMessenger
use MessageWay\MessageWayLaravel\Facades\MessageWayLaravel; $message = MessageWayLaravel::sendViaGap('MOBILE', $templateID, [ 'params' => ['param 1 value', 'param 2 value', 'param 3 value'] ]); dump($message);
Send via IVR
use MessageWay\MessageWayLaravel\Facades\MessageWayLaravel; $templateID = 2; $message = MessageWayLaravel::sendViaIVR('MOBILE', $templateID); dump($message);
Verify OTP
use MessageWay\MessageWayLaravel\Facades\MessageWayLaravel; $verify = MessageWayLaravel::verifyOTP($OTP); dump($verify);
Status
use MessageWay\MessageWayLaravel\Facades\MessageWayLaravel; $status = MessageWayLaravel::getStatus($OTPRefrenceID); dump($status);
License
MIT.
统计信息
- 总下载量: 1.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-04-19
