PHP code example of j2zl / easy-sms
1. Go to this page and download the library: Download j2zl/easy-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/ */
j2zl / easy-sms example snippets
$sms = app('EasySms');
list($success, $response) = $sms->send('183****014', '无需填入, 兼容jumdata语法', ['5678']);
list($success, $response) = $sms->sendRawContent('183****014', 'content');
if ($success == false) {
// 短信发送失败
}
php artisan vendor:publish --provider="EasySms\Providers\ServiceProvider"