2017 © Pedro Peláez
 

library notifyme-plivo

Provides a plivo gateway for NotifyMe

image

benmag/notifyme-plivo

Provides a plivo gateway for NotifyMe

  • Friday, October 30, 2015
  • by benmag
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

NotifyMe Plivo

A Plivo gateway for NotifyMe., (*1)

Example

Here is an example of a notification with Plivo:, (*2)

<?php

// Create a factory for notifications
$notifierFactory = new NotifyMeHQ\NotifyMe\NotifyMeFactory();

// Create the new notification for plivo
$plivoNotifier = $notifierFactory->make([
  // Specify that we will use slack
  'driver' => 'plivo',
  // Who send this message
  'from'   => 'Plivo',
  // Add auth tokens
  'auth_id'  => 'XXXXX',
  'auth_token'  => 'XXXXXXXXXXXXX',
]);

/* @var \NotifyMeHQ\Contracts\ResponseInterface $response */
$response =  $plivoNotifier->notify('1111111111', 'Hi, text from Plivo');

echo $response->isSent() ? 'Message sent' : 'Message going nowhere';

License

NotifyMe is licensed under The MIT License (MIT)., (*3)

The Versions

30/10 2015

dev-master

9999999-dev

Provides a plivo gateway for NotifyMe

  Sources   Download

MIT

The Requires

 

The Development Requires

notifyme notifymehq plivo