Download the PHP package davidvarney/plivo-complete without Composer
On this page you can find all versions of the php package davidvarney/plivo-complete. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download davidvarney/plivo-complete
More information about davidvarney/plivo-complete
Files in davidvarney/plivo-complete
Package plivo-complete
Short Description Complete Plivo driver for Laravel
License MIT
Homepage https://github.com/davidvarney/plivo-complete
Informations about the package plivo-complete
Plivo Complete
Plivo Complete is a simple Laravel 5 driver for the Plivo PHP library
Installation
Step 1
Install via composer
Method 1: via CLI (recommended)
$ composer require davidvarney/plivo-complete:1.0.0
Method 2: via composer.json
Step 2
Laravel Service Provider
In the config/app.php
file and within the 'providers' => [
array place the following towards the end of the array
Laravel Alias
In the same config/app.php
file and within the 'aliases' => [
array place the following towards the end of the array
Step 3
You don't have to run the dump-autoload
command but I usually do just for good measure.
Step 4
Next we're going to create the necessary config file so that we can insert our Auth ID and Auth Token from our Plivo account
After publishing the config file make your way to the config
directory and look for the following file: config/plivo.php
You should see that the config file is looking for two environment variables. You have two options.
Option #1
Place the auth_token and auth_id within the env()
function like so:
Option #2 (recommended)
You can simply leave the config file alone and place the 'PLIVO_AUTH_TOKEN'
and 'PLIVO_AUTH_ID'
inside of the .env
file.
Usage
Now you should be able to simply use it within a Controller like so
Then your view would look something like this:
You can use any RestAPI method that is available in the Plivo RestAPI PHP library
All versions of plivo-complete with dependencies
illuminate/support Version 5.1.*|5.2.*|5.3.*
plivo/plivo-php Version ^1.1