<?php
// Require the bundled autoload file - the path may need to change
// based on where you downloaded and unzipped the SDK
require __DIR__ . '/twilio-php-master/Twilio/autoload.php';

// Use the REST API Client to make requests to the Twilio REST API
use Twilio\Rest\Client;

// Your Account SID and Auth Token from twilio.com/console
$sid = 'AC526ac6e677366e31885fa994be5a8334';
$token = 'bbe491db129b122c23f3e203762a18ac';
$client = new Client($sid, $token);

    // Step 4: make an array of people we know, to send them a message. 
    // Feel free to change/add your own phone number and name here.
    $people = array(
        "+447792560326" => "Jas",
		"+447779264757" => "Sukhjit",
        
    );

    // Step 5: Loop over all our friends. $number is a phone number above, and 
    // $name is the name next to it
    foreach ($people as $number => $name) {

        $sms = $client->account->messages->create(

            // the number we are sending to - Any phone number
            $number,

            array(
                // Step 6: Change the 'From' number below to be a valid Twilio number 
                // that you've purchased
                'from' => "+447481337224", 
                
                // the sms body
                'body' => "Hey $name, Claim a £50 discount on new Business Website. OFFER CODE SM50 www.webezy.com !"
            )
        );

        // Display a confirmation message on the screen
        echo "Sent message to $name";
    }