承接 bita/message 相关项目开发

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

邮箱: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.29k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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