abedin99/bulksms 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

  1. You can install the package via composer:
    composer require abedin99/bulksms
  1. You should publish the migration and the config/bulksms.php config file with:
    'providers' => [
	    Abedin99\Bulksms\BulksmsServiceProvider::class,
	];
  1. 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"
  1. 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.

统计信息

  • 总下载量: 13
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-02-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固