<?php

namespace Mtc\Plugins\SMS\Classes;

class SMS
{

    public static function sendMessage($phone_number, $message)
    {
        if (SMS_DRIVER === 'Twilio') {
            // Clean up the phone number
            $phone_number = str_replace(['+', ' '], ['00', ''], $phone_number);
            return Twilio::sendMessage($phone_number, $message);
        }
    }
}