承接 it-brains/hi-sms 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

it-brains/hi-sms

Composer 安装命令:

composer require it-brains/hi-sms

包简介

HiSMS Laravel integration

README 文档

README

This is a package to integrate HiSMS with Laravel.

Documentation is on manual page that send us to API pdf.

Installation

Require this package with composer.

composer require it-brains/hi-sms

You have to fill in your credentials to environment variables:

HISMS_USERNAME=
HISMS_PASSWORD=
HISMS_SENDER_NAME=

Usage

You can now add messages using the Facade:

HiSMS::getBalance();
$smsId = HiSMS::send($number, $message);
$smsId = HiSMS::sendBulk([$number1, $number2], $message);

or use DI:

use ITBrains\HiSMS\HiSMSClient;

...

function sendSms(HiSMSClient $sms) 
{
    $sms->getBalance();
    $smsId = $sms->send($number, $message);
    $smsId = $sms->sendBulk([$number1, $number2], $message);
}

...

Testing

If you need to mock SMSes on testing then you can just change your driver to anything not equal to 'hisms' on .env:

HISMS_DRIVER=hisms_faker

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-29

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固