PHP code example of bellal / victory-link-sms

1. Go to this page and download the library: Download bellal/victory-link-sms 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/ */

    

bellal / victory-link-sms example snippets




use Bellal\VictoryLinkSMS\VictoryLink;

$message = new VictoryLink([
    'username' => 'YOUR_USERNAME',
    'password' => 'YOUR_PASSWORD',
    'sender' => 'YOUR_SENDER',
    'language' => 'MESSAGE LANGUAGE ex: e',
]);

$message->send([
    'to' => '+201111111111',
    'message' => "Your Message Goes Here",
]);

$message->response()->getMessage();

$message->response()->getCode();