appsdept/lankabell-sms

一个用于连接 LankaBell SMS Api 的简单包,包含双因素认证

v1.0.2 2021-07-04 14:36 UTC

This package is auto-updated.

Last update: 2024-09-04 21:49:17 UTC


README

介绍

AppsDept LankaBell SMS 库提供了一个简单的接口来发送短信

许可协议

Laravel LankaBell SMS 库是开源软件,遵循MIT 许可协议

安装

从 composer 需要

composer require appsdept/lankabell-sms

发布提供者

php artisan vendor:publish --provider="AppsDept\LaravelLankaBellSMS\LankaBellServiceProvider"

迁移

php artisan migrate

环境设置

从您的仪表板生成您的 LB_Key。

在您的 .env 中添加以下内容

LB_SECURE_KEY="LB_Key750 YouKeyGoesHere="

LB_API_PORT=4090

使用方法

双因素认证

这将发送一个随机代码并返回生成的代码。

$code = LankaBellSMS::TwoFactorAuth('071XXXXXXX');

return $code;

向一个号码发送短信

LankaBellSMS::SendText('071XXXXXXX', '需要发送的消息');

发送的消息将存储在数据库中。

联系我们

www.appsdept.com