Twilio API wrapper for Laravel 5.
- Create an account through https://www.twilio.com/
- Purchase a phone number via Twilio.
- Set the
ACCOUNT_SID,AUTH_TOKENandPHONE_NUMBERin the config.
<?php
require 'vendor/autoload.php';
use ABR\Twilio\Facades\Twilio;
// Create a new instance of the Twilio class.
$twilio = new Twilio();// Pass parameters into send method.
$params = [
'phone_number' => 07000000000,
'message' => 'Foo bar',
];
$twilio->send($params);