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
其他信息
- 授权协议: MIT
- 更新时间: 2015-04-28