abedin99/bulksms
Composer 安装命令:
composer require abedin99/bulksms
包简介
Laravel bulksms Package
README 文档
README
At times, you might want to create an app that uses a phone number/password pair as a means of authentication, as opposed to the normal email/password pair. In some other cases, you are not necessarily using phone numbers as a means of authentication, but having a phone number is critical to your app. In such situations, it is very important you verify that the phone numbers your users provide are valid and functional. One way to do this is to give them a call and tell them a code that they will have to provide to your app. If you use Gmail, then you are probably familiar with the voice call verification it uses. In this package, we will be showing you how to achieve that using Laravel and bartapathao.com Bulksmsbd Service excellent service. Let’s get to it.
Laravel is accessible, powerful, and provides tools required for large, robust applications.
Installation
This package can be used with Laravel 5.8 or higher.
- You can install the package via composer:
composer require abedin99/bulksms
- You should publish the migration and the config/bulksms.php config file with:
'providers' => [ Abedin99\Bulksms\BulksmsServiceProvider::class, ];
- Creating a blogpackage.php file in the /config directory of the Laravel project in which the package was required.
php artisan vendor:publish --provider="Abedin99\Bulksms\BulksmsServiceProvider" --tag="config"
- The next thing we are going to do is to add our bulksms credentials to the .env file.
BULKSMS_URL=<url> BULKSMSBD_USERNAME=<username> BULKSMSBD_PASSWORD=<password>
Usage
use Abedin99\Bulksms\Bulksms; Route::get('/send-otp', function() { $code = random_int(100000, 999999); $number = "+880XXXXXXXXXX"; // with country and area code $txt = "Hi, thanks for Joining. This is your verification code: {$code}"; $send = Bulksms::send($number, $txt); return $send; });
Usage Example
1 How to Implement Account Verification and Login by Phone in Laravel.
License
The MIT License (MIT). Please see License File for more information.
abedin99/bulksms 适用场景与选型建议
abedin99/bulksms 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 02 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 abedin99/bulksms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 abedin99/bulksms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-05