ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/www/limpiar.in.net/updates/app/Services/OTP/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/www/limpiar.in.net/updates/app/Services/OTP/Twillo.php

<?php

namespace App\Services\OTP;

use App\Contracts\SendSms;
use Twilio\Rest\Client;

class Twillo implements SendSms
{

    public function send($to, $from, $text, $template_id)
    {
        $sid = env("TWILIO_SID"); // Your Account SID from www.twilio.com/console
        $token = env("TWILIO_AUTH_TOKEN"); // Your Auth Token from www.twilio.com/console

        $client = new Client($sid, $token);
        try {
            $client->messages->create(
                $to, // Text this number
                array(
                    'from' => env('VALID_TWILLO_NUMBER'), // From a valid Twilio number
                    'body' => $text
                )
            );
        } catch (\Exception $e) {
        }
    }
}

Zerion Mini Shell 1.0