2017 © Pedro Peláez
 

library laravel-plivo

A Plivo-PHP Wrapper for Laravel

image

meisam-mulla/laravel-plivo

A Plivo-PHP Wrapper for Laravel

  • Friday, October 20, 2017
  • by meisam-mulla
  • Repository
  • 1 Watchers
  • 1 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Plivo for Laravel

This is a simple wrapper around plivo/plivo-php that creates a Plivo facade for Laravel., (*1)

Installation

Navigate your your laravel installation and type the following into the command line, (*2)

composer require meisam-mulla/laravel-plivo:dev-master

Add the following in your ServiceProvider array in config/app.php, (*3)

MeisamMulla\Plivo\ServiceProvider::class,

Add the following to your aliases array, (*4)

'Plivo' => MeisamMulla\Plivo\Facade::class,

Run php artisan vendor:publish, (*5)

Add the following lines at the bottom of your .env:, (*6)

PLIVO_AUTH_ID=YOURAUTHID
PLIVO_AUTH_TOKEN=YOURAUTHTOKEN

Your Auth ID and Token can be found in your Plivo dashboard., (*7)

Usage

Refer to the PHP Helper Docs for all the methods available. Simple example on how to send a SMS:, (*8)

<?php
namespace App\Http\Controllers;

use Plivo;

class PlivoTestController extends Controller {
    public function sendMessage() {
        Plivo::send_message([
            'src' => '16045555555',
            'dst' => '17785555555',
            'text' => 'This is a text message',
        ]);
    }
}

The Versions

20/10 2017

dev-master

9999999-dev

A Plivo-PHP Wrapper for Laravel

  Sources   Download

MIT

The Requires

 

by Meisam Mulla

laravel sms voice plivo