This bundle creates a Symfony wrapper service for the official Plivo PHP helper library
composer require invit/plivo-bundle
Also, enable the bundle in bundles.php:
<?php
// config/bundles.php
return [
...
Invit\PlivoBundle\InvitPlivoBundle::class => ['all' => true],
...
];
Configure the application with the credentials you find on the plivo dashboard.
invit_plivo:
auth:
auth_id: "xxxxx"
auth_token: "yyyyy"
$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',
]
);