PHP code example of weann / sms
1. Go to this page and download the library: Download weann/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/ */
weann / sms example snippets
use Sms\Sms;
$sms = new Sms([
'luosimao' => [
'apikey' => 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
],
'guzzle' => [
'timeout' => 10
]
]);
$ret = $sms->driver('luosimao')->send('13000000000', 'message');
var_dump($ret);