PHP code example of hicolin / smsbao

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

    

hicolin / smsbao example snippets


    $account = "xxx";
    $password = "xxx";
    $phone = "xxx";
    $content = "xxx";
    
    $smsbao = new Hicolin\Smsbao\Smsbao($account, $password);
    $result = $smsbao->send($phone, $content);