PHP Classes

File: Examples/sendMessage.php

Recommend this page to a friend!
  Classes of Niko Peikrishvili   Minimal Twilio PHP API Send SMS   Examples/sendMessage.php   Download  
File: Examples/sendMessage.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Minimal Twilio PHP API Send SMS
Send SMS messages using the Twilio API
Author: By
Last change:
Date: 4 years ago
Size: 351 bytes
 

Contents

Class file image Download
<?php
require __DIR__ . '/../vendor/autoload.php';

use
NikoPeikrishvili\TwilioMinimal\TwilioConfig;
use
NikoPeikrishvili\TwilioMinimal\TwilioMinimal;

$config = new TwilioConfig();
$config->setSenderNumber("");
$config->setClientSid("");
$config->setAuthToken("");

$twilio = new TwilioMinimal($config);

$twilio->send("+00000000000", "Messge body");