invit / plivo-bundle
Plivo PHP library service bundle
Installs: 986 463
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- php: ^7.4|^8.0
- plivo/php-sdk: ^4.0
- symfony/config: ^5.0|^6.0|^7.0
- symfony/dependency-injection: ^5.0|^6.0|^7.0
- symfony/http-foundation: ^5.0|^6.0|^7.0
- symfony/http-kernel: ^5.0|^6.0|^7.0
README
This bundle creates a Symfony wrapper service for the official Plivo PHP helper library
Installation
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"
Example
$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', ] );