bita/message 问题修复 & 功能扩展

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

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

bita/message

最新稳定版本:2.4.1

Composer 安装命令:

composer require bita/message

包简介

Laravel Message Package with multiple providers

README 文档

README

Laravel Message Package

Hi, we support IpPanel and SmsIr providers that you can choose which one to use in bitamessage.php.
also you can add new provider there!

How to install:

composer require bita/message

php artisan vendor:publish --provider="Bita\Message\MessageServiceProvider"

Setup:

add this line to your app.php providers :

Bita\Message\MessageServiceProvider::class

and add this line to your app.php aliases:

'Message' => Bita\Message\Facades\Message::class

After publish the package files you must add your provider configuration in .env

Like this:

IP PANEL

  • BITA_MESSAGE_IP_PANEL_ENDPOINT=your provider end point

  • BITA_MESSAGE_IP_PANEL_ORIGINATOR=your line number

  • BITA_MESSAGE_IP_PAENL_API_KEY=your api key

SMS IR

  • BITA_MESSAGE_SMS_IR_ENDPOINT=your provider end point

  • BITA_MESSAGE_SMS_IR_ORIGINATOR=your line number

  • BITA_MESSAGE_SMS_IR_API_KEY=your api key

  • BITA_MESSAGE_SMS_IR_SECRET_KEY=your secret key

SMS IR V2

  • BITA_MESSAGE_SMS_IR_V2_ORIGINATOR=your line number

  • BITA_MESSAGE_SMS_IR_V2_API_KEY=your api key

How To Use:

change default service in bitamessage.php and call provider configuration from .env in that. if you want to log messages in database,set logs = true and set the table name in bitamessage.php.

now to send message

Message::send($message, array $numbers);

to send message by pattern

Message::sendByPattern($pattern, $number, array $parameters);

to check delivery

Message::checkDelivery($tracker_id);

to get credit

Message::credit();

统计信息

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

GitHub 信息

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

其他信息

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