PHP code example of th3mouk / free-mobile-sms-cli

1. Go to this page and download the library: Download th3mouk/free-mobile-sms-cli 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/ */

    

th3mouk / free-mobile-sms-cli example snippets


use Th3Mouk\FreeMobileSMSNotif\Client;

$login = 'test';
$pass = 'test';

$freeMobileClient = new Client($login, $pass);
$response = $freeMobileClient->send('Test Message');

$response = $freeMobileClient->sendMessage('Test Message');
$code = $response->getStatusCode();