# dysms **Repository Path**: skycccu/dysms ## Basic Information - **Project Name**: dysms - **Description**: 阿里云短信 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-13 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dysms 阿里云短信 ``` Sms::setConfig(['accessKeyId'=>'', 'accessKeySecret'=>'']); //$response = SmsDemo::sendBatchSms([ // 'phone'=>['123456','123456'], // 'sign'=>['123456','123456'], // 'templateId'=>'SMS_131765059', // 'var'=>[['code'=>'111'],['code'=>'2222']] //]); //echo "发送短信(sendSms)接口返回的结果:\n"; //print_r($response); //sleep(2); // //$response = SmsDemo::sendBatchSms(); //echo "批量发送短信(sendBatchSms)接口返回的结果:\n"; //print_r($response); // //sleep(2); // $response = Sms::querySendDetails([ 'phone'=>'15237160431', "dates"=>"20180413", "pageSize"=>10, "page"=>1 ]); echo "查询短信发送情况(querySendDetails)接口返回的结果:\n"; print_r($response); } ```