rutgerkirkels/smsclient

Use this SMS client to send text messages through various providers, like VoipCheap

1.0.0-beta.1 2016-10-23 21:52 UTC

This package is not auto-updated.

Last update: 2024-12-07 20:55:21 UTC


README

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();
?>