PHP code example of apimaster / sms

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

    

apimaster / sms example snippets

 php


ster\SMS\SMS;

SMS::setApiKey('<YOUR_API_KEY');

$sms = SMS::send('0933xxxx957', 106, ['code' => 4859]);

print_r($sms);