PHP code example of havenshen / yunpian-sms
1. Go to this page and download the library: Download havenshen/yunpian-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/ */
havenshen / yunpian-sms example snippets
HavenShen\YunpianSMS\YunpianSMSServiceProvider::class,
'YunpianSMS' => HavenShen\YunpianSMS\Facades\YunpianSMS::class,
SMS_API_KEY=xxx
SMS_SEND_URL=xxx
SMS_SEND_TEXT=xxx
/*
*可以是个string字符串或array字符串群发
*/
\YunpianSMS::sendSMS('139xxxx5926');
shell
php artisan vendor:publish