SMS-client

by Rutger Kirkels

Latest Stable Version Total Downloads Monthly Downloads License

Installation

Use Composer to install the library:

$ composer require rutgerkirkels/smsclient

Usage

<?php
use RutgerKirkels\SMSclient\Client;

// Initialize the client to send a message through VoipCheap
$client = new Client('VoipCheap');

// Add your credentials
$client->setCredentials(array('username' => '<username>', 'password' => '<password>'));

// Set the recipients telephone number in international format
$client->setRecipient('0031641443860');

// Set the text you want to send
$client->setMessage('zomaar een tekst');
$client->send();
?>