PHP code example of maatify / whysms

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

    

maatify / whysms example snippets


use Maatify\WhySms\WhySms;

I_TOKEN__, __SENDER_ID__); // WhySms instance


$result = $why_sms->->CheckBalance();

print_r($result);


$result = $why_sms->SendSms(__PHONE_NUMBER__, __SMS_MESSAGE__);

print_r($result);