PHP code example of sliverwing / alidayu

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

    

sliverwing / alidayu example snippets




return [
    'appkey' => env('ALIDAYU_APPKEY'),
    'secretKey' => env('ALIDAYU_SECRET'),

    'sms' => [
        'numsend' => [
            'SmsFreeSignName' => '医*',
            'SmsTemplateCode' => 'SMS_3*******',
        ],
    ],
];

    $this->dispatch(new AlidayuMessageJob($phoneNumber, ['code'=>$code], "numsend"));