承接 xuma/bfxm 相关项目开发

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

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

xuma/bfxm

最新稳定版本:1.0.1

Composer 安装命令:

composer require xuma/bfxm

包简介

BFXM Json Builder

README 文档

README

composer require xuma/bfxm dev-master

###Usage

You can chain methods.

use Xuma\Bfxm\Builder;

$bfxm = new Builder;

$bfxm->play('http://bfxmdemo.bulutfon.com/demosesler/demo-hosgeldiniz.mp3')
	->dial(10)
	->build();

By default build() will return below code if you want to set json header and output below code just use build(true).

{
    "bfxm": {
        "version": 1
    },
    "seq": [
        {
            "action": "play",
            "args": {
                "url": "http://bfxmdemo.bulutfon.com/demosesler/demo-hosgeldiniz.mp3"
            }
        },
        {
            "action": "dial",
            "args": {
                "destination": 10
            }
        }
    ]
}

###Methods

  • play($url)

  • gather

  • hangup

  • reject

  • set_caller

  • say

  • dial

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-28