rutgerkirkels / smsclient
Use this SMS client to send text messages through various providers, like VoipCheap
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/rutgerkirkels/smsclient
Requires (Dev)
- phpunit/phpunit: 4.0.*
This package is not auto-updated.
Last update: 2025-09-28 01:38:43 UTC
README
by Rutger Kirkels
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(); ?>