PHP code example of aliwuyun / alidayu
1. Go to this page and download the library: Download aliwuyun/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/ */
aliwuyun / alidayu example snippets
use Alidayu;
use Aliwuyun\Alidayu\AlibabaAliqinFcSmsNumSend;
class AlidayuTest
{
public function SendSms()
{
$message = (new AlibabaAliqinFcSmsNumSend())
->setRecNum('13888888888')
->setSmsParam(['number' => rand(100000, 999999)])
->setSmsFreeSignName('支付宝')
->setSmsTemplateCode('SMS_00000001');
return Alidayu::send($message);
}
}