PHP code example of xiaolong / yunpian-sms

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

    

xiaolong / yunpian-sms example snippets


  XiaoLong\YunpianSMS\YunpianSMSServiceProvider::class,
  

  'YunpianSMS' => XiaoLong\YunpianSMS\Facades\YunpianSMS::class,
  

  SMS_API_KEY=xxx
  SMS_SEND_URL=xxx
  

  /*
  * 手机号
  * 短信模板
  */
  \YunpianSMS::sendSMS('183xxxx1235',"【xxx】短信内容");
  
shell
  php artisan vendor:publish