Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/invit/plivobundle

Symfony plivo service wrapper
https://github.com/invit/plivobundle

php plivo plivo-sms plivo-voice symfony symfony-bundle

Last synced: 2 months ago
JSON representation

Symfony plivo service wrapper

Awesome Lists containing this project

README

        

# Plivo bundle

This bundle creates a Symfony wrapper service for the official Plivo PHP helper library

## Installation

```bash
composer require invit/plivo-bundle
```

Also, enable the bundle in bundles.php:

``` php
['all' => true],
...
];
```

Configure the application with the credentials you find on the [plivo dashboard](https://manage.plivo.com/dashboard/).

``` yaml
invit_plivo:
auth:
auth_id: "xxxxx"
auth_token: "yyyyy"
```

## Example

```php
$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',
]
);
```