PHP code example of aliirfaan / mu-sms-kit

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

    

aliirfaan / mu-sms-kit example snippets




Aliirfaan\SmsKit\Sms;

// instantiate class with your credentials
$sms = new Sms('my_username', 'my_password', 'my_sender_id', 'my_api_endpoint');

// use
$message = 'Hello';
$phoneNumber = '23057777777';

$sendSms = $sms->sendSms($phoneNumber, $message);