定制 buibr/mizu-voip-sms-php 二次开发

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

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

buibr/mizu-voip-sms-php

Composer 安装命令:

composer require buibr/mizu-voip-sms-php

包简介

Send SMS with Mizu VoIP switch

README 文档

README

Install with composer

composer requre buibr/budget-sms-php

Usage:

Example 1:

$mizu = new \buibr\Mizu\mizuSMS( [
    'server' => 'the sip server of yours',
    'authKey'=> 'xxx',
    'authId'=>'xxx',
    'authpwd'=>'xxx',
]);

//  sender name
$mizu->setSender("Test"); // sender name

//  add recepient
$mizu->setRecipient('+38971xxxxxx');

//  add message
$mizu->setMessage('Testing the provider');

//  Send the message 
$send = $mizu->send();

Example 2:

use buibr\Mizu\mizuSMS;

$mizu = new mizuSMS( [
    'server' => 'the sip server of yours',
    'anum'=>'xxx', // sender name
    'authKey'=> 'xxx',
    'authId'=>'xxx',
    'authpwd'=>'xxx',
]);

$credit = $mizu->balance();

Response:

Success:

buibr\Mizu\mizuResponse Object
(
    [code] => 200
    [type] => text/plain
    [time] => 0.417484
    [status] => 1
    [response] => $9.8
    [data] => Your credit is $9.8
)

Error:

buibr\Mizu\mizuResponse Object
(
    [code] => 200
    [type] => text/plain
    [time] => 0.454436
    [status] => 
    [response] => auth failed: wrong key xxx NORETRY
    [data] => ERROR: auth failed: wrong key xxx NORETRY
)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-04-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固