cjworx/laravel-smsmkt
最新稳定版本:1.0.3
Composer 安装命令:
composer require cjworx/laravel-smsmkt
包简介
A Laravel client for sending SMS via SMSMKT.
README 文档
README
This package is a wrapper around SMSMKT client for Laravel.
Installation
You can install the package via composer:
composer require cjworx/laravel-smsmkt
You can publish the config file with:
php artisan vendor:publish --tag="smsmkt-config"
Usage
Add your SMSMKT credentials into .env file
SMSMKT_API_KEY=
SMSMKT_SECRET_KEY=
SMSMKT_OTP_PROJECT_KEY=
SMSMKT_SENDER_NAME=
Example of basic usage
<?php
use CJWORX\LaravelSMSMKT\SMSMKTClient;
// Send SMS
SMSMKTClient::send('0811111111', 'Hello World!');
// Send OTP
$token = SMSMKTClient::sendOTP('0811111111');
// Verify OTP
$verified = SMSMKTClient::verifyOTP($token, '123456');
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-12