nikopeikrishvili/twiliominimal

Minimal package for only sending sms messages via Twilio

v1.0.5 2020-04-25 10:17 UTC

This package is auto-updated.

Last update: 2020-06-25 10:42:19 UTC


README

Build Status Coverage

Minimal Twilio package just for sending SMS Messages

Supported PHP Versions

  • 7.1
  • 7.2
  • 7.3
  • 7.4

Instalation Via Composer:

TwilioMinimal is available on Packagist as the nikopeikrishvili/twiliominimal package:

composer require nikopeikrishvili/twiliominimal

Quickstart

Send an SMS

<?php
require __DIR__ . '/vendor/autoload.php';

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

$config = new TwilioConfig();
// Sender phone number 
$config->setSenderNumber("");
// Client SID
$config->setClientSid("");
// Client Auth Token
$config->setAuthToken("");

$twilio = new TwilioMinimal($config);

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

Testing

composer test

Coding style checks

composer cs