File: README.md

Recommend this page to a friend!
  Classes of Niko Peikrishvili  >  Minimal Twilio PHP API Send SMS  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Read me
Class: Minimal Twilio PHP API Send SMS
Send SMS messages using the Twilio API
Author: By
Last change:
Date: 2 months ago
Size: 1,204 bytes
 

Contents

Class file image Download

TwilioMinimal

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


For more information send a message to info at phpclasses dot org.