定制 virtualorz/every8dsms 二次开发

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

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

virtualorz/every8dsms

最新稳定版本:0.0.5

Composer 安装命令:

composer require virtualorz/every8dsms

包简介

README 文档

README

Use for Laravel website to send SMS message via every8d service

Install

composer require virtualorz/every8DSMS

Config

edit config/app.php

'providers' => [
    ...
    Virtualorz\Every8DSMS\Every8DSMSServiceProvider::class
]

'aliases' => [
    ...
    'Every8DSMS' => Virtualorz\Every8DSMS\Facades\Every8DSMS::class,
]

Publish data

php artisan vendor:publish --provider="Virtualorz\Every8DSMS\Every8DSMSServiceProvider"

Edit Config

edit config/every8DSMS.php ,
account for every8d login account,
password for every8d login password.
please, DO NOT EDIT 'Api_url'

Method

send($message, $phone, $subject)
send $message to $phone, $phone can be multiple numbers, for example "09889876543,09777876543", $subject can be null

return value :
data['status'] = 1; //1 for success 0 for fail
data['status_string'] = ""; //success or fail
data['message'] = '';//success cost message or fail message
data['data'] = [
    'CREDIT' => '',// the recent point on every8d
    'SENDED' => '',// hwo many sms send this time
    'COST' => '',// cost point this time
    'UNSEND' => '',// how many can not send sms
    'BATCH_ID' => '',// id for this send
]
getCredit()
get the point on every8d

return value :
    data['status'] = 1; //1 for success 0 for fail
    data['status_string'] = ""; //success or fail
    data['message'] = '';//success cost message or fail message
    data['data'] = recent point

中文版本文件

Every8DSMS : 傳送簡訊超簡單

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-07-12