Env

Example Usage

use Midnite81\Plivo\Contracts\Services\Messaging;
public function sendMessage(Messaging $messaging)
{
$msg = $messaging->msg('Hello World!')->to('0123456789')->sendMessage();
}
Or you can simply use the helper function
text('+44123456789', 'Just reminding you to attend the Dentist at 3.30pm');
Text takes three arguments, to, message and optionally from.
If text is already defined as a function in your application you can use
text_message($to, $message, $from); or
plivo_send_text($to, $message, $from);