PHP code example of alexmanno / messagenet-sms-php

1. Go to this page and download the library: Download alexmanno/messagenet-sms-php 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/ */

    

alexmanno / messagenet-sms-php example snippets


$client = new \AlexManno\Messagenet\Client\MessageNetClient(
    'YOUR-USER-ID',
    'YOUR-PASSWORD'
);

$message = new \AlexManno\Messagenet\Model\SmsMessage(
    ['DESTINATION-NUMBER'], 
    'TEXT'
);

$client->sendSms($message);
bash
composer