PHP code example of invit / plivo-bundle

1. Go to this page and download the library: Download invit/plivo-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

invit / plivo-bundle example snippets


$this->get(PlivoApi::class)->calls->play(
    'cf5fe5ff-9952-yyyy-xxxx-b75ff490ffff', 
    ['https://s3-eu-west-1.amazonaws.com/waitsongbucket/wait.mp3'], 
    [
        'loop' => 'true',
        'mix' => 'false',
        'legs' => 'both',
    ]
);
 php

// config/bundles.php

return [
    ...
    Invit\PlivoBundle\InvitPlivoBundle::class => ['all' => true],
    ...
];