定制 boring-dragon/laravel-dhiraagu-sms 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

boring-dragon/laravel-dhiraagu-sms

Composer 安装命令:

composer require boring-dragon/laravel-dhiraagu-sms

包简介

Dhiraagu Bulk SMS Service API Wrapper for laravel

README 文档

README

You can install the package via composer:

composer require zedox/laravel-dhiraagu-sms

Configuration

Add the following in your config/services.php

'dhiraagu-sms' => [
    'url' => env('DHIRAAGU_SMS_URL'),
    'userid' => env('DHIRAAGU_SMS_USERID'),
    'password' => env('DHIRAAGU_SMS_PASSWORD'),
],

then you can use the .env file to pass these credentials

DHIRAAGU_SMS_USERID=XXXXX
DHIRAAGU_SMS_PASSWORD=XXXXX

While url is optional, you must provide userid and password


Usage

This service can easily be used using the Facade provided

use Zedox\LaravelDhiraaguSms\Facades\DhiraaguSms;

You can use the send method which accepts a mobile no and a message

    DhiraaguSms::send($toMobile, $message)

Example

Route::get('test-sms', function () {
    try {
        DhiraaguSms::send('9607XXXXXX', 'Hello World');
    } catch (\Exception $e) {
        return response()->json(['message' => $e->getMessage()]);
    }
    return resoponse()->json(['message' => 'Success: SMS sent']);
});

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固