xuma / bfxm
BFXM Json Builder
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 178
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 2
Open Issues: 0
pkg:composer/xuma/bfxm
Requires
- php: >=5.4.0
This package is auto-updated.
Last update: 2025-07-22 08:17:10 UTC
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