PHP code example of zepson / zepsonsms-php

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

    

zepson / zepsonsms-php example snippets


$zepson = new ZepsonSms\SDK\Client('username', 'password');
echo $zepson->sendSms([
    'message'=>'Hello, ZepsonSms!',
    'to'=>'+255752771650',
    'from'=>'ZEPSONSMS'
]);
bash
composer