PHP code example of rutgerkirkels / smsclient

1. Go to this page and download the library: Download rutgerkirkels/smsclient library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

rutgerkirkels / smsclient example snippets



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