Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/invit/plivobundle
- Owner: invit
- License: mit
- Created: 2014-06-21T15:17:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-11-26T12:07:34.000Z (about 2 years ago)
- Last Synced: 2024-10-14T18:21:13.184Z (2 months ago)
- Topics: php, plivo, plivo-sms, plivo-voice, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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',
]
);
```