phpsms.php 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <?php
  2. return [
  3. /*
  4. * The scheme information
  5. * -------------------------------------------------------------------
  6. *
  7. * The key-value paris: {name} => {value}
  8. *
  9. * Examples:
  10. * 'Log' => '10 backup'
  11. * 'SmsBao' => '100'
  12. * 'CustomAgent' => [
  13. * '5 backup',
  14. * 'agentClass' => '/Namespace/ClassName'
  15. * ]
  16. *
  17. * Supported agents:
  18. * 'Log', 'YunPian', 'YunTongXun', 'SubMail', 'Luosimao',
  19. * 'Ucpaas', 'JuHe', 'Alidayu', 'SendCloud', 'SmsBao',
  20. * 'Qcloud', 'Aliyun'
  21. *
  22. */
  23. 'scheme' => [
  24. //'Log',
  25. 'Aliyun' => '100'
  26. ],
  27. /*
  28. * The configuration
  29. * -------------------------------------------------------------------
  30. *
  31. * Expected the name of agent to be a string.
  32. *
  33. */
  34. 'agents' => [
  35. /*
  36. * -----------------------------------
  37. * YunPian
  38. * 云片代理器
  39. * -----------------------------------
  40. * website:http://www.yunpian.com
  41. * support content sms.
  42. */
  43. 'YunPian' => [
  44. //用户唯一标识,必须
  45. 'apikey' => 'your_api_key',
  46. ],
  47. /*
  48. * -----------------------------------
  49. * YunTongXun
  50. * 云通讯代理器
  51. * -----------------------------------
  52. * website:http://www.yuntongxun.com/
  53. * support template sms.
  54. */
  55. 'YunTongXun' => [
  56. //主帐号
  57. 'accountSid' => 'your_account_sid',
  58. //主帐号令牌
  59. 'accountToken' => 'your_account_token',
  60. //应用Id
  61. 'appId' => 'your_app_id',
  62. //请求地址(不加协议前缀)
  63. 'serverIP' => 'app.cloopen.com',
  64. //请求端口
  65. 'serverPort' => '8883',
  66. //被叫号显
  67. 'displayNum' => null,
  68. //语音验证码播放次数
  69. 'playTimes' => 3,
  70. ],
  71. /*
  72. * -----------------------------------
  73. * SubMail
  74. * -----------------------------------
  75. * website:http://submail.cn/
  76. * support template sms.
  77. */
  78. 'SubMail' => [
  79. 'appid' => 'your_app_id',
  80. 'signature' => 'your app key',
  81. ],
  82. /*
  83. * -----------------------------------
  84. * luosimao
  85. * -----------------------------------
  86. * website:http://luosimao.com
  87. * support content sms.
  88. */
  89. 'Luosimao' => [
  90. 'apikey' => 'your_api_key',
  91. 'voiceApikey' => 'your_voice_api_key',
  92. ],
  93. /*
  94. * -----------------------------------
  95. * ucpaas
  96. * -----------------------------------
  97. * website:http://ucpaas.com
  98. * support template sms.
  99. */
  100. 'Ucpaas' => [
  101. //主帐号,对应开官网发者主账号下的 ACCOUNT SID
  102. 'accountSid' => 'your_account_sid',
  103. //主帐号令牌,对应官网开发者主账号下的 AUTH TOKEN
  104. 'accountToken' => 'your_account_token',
  105. //应用Id,在官网应用列表中点击应用,对应应用详情中的APP ID
  106. //在开发调试的时候,可以使用官网自动为您分配的测试Demo的APP ID
  107. 'appId' => 'your_app_id',
  108. ],
  109. /*
  110. * -----------------------------------
  111. * JuHe
  112. * 聚合数据
  113. * -----------------------------------
  114. * website:https://www.juhe.cn
  115. * support template sms.
  116. */
  117. 'JuHe' => [
  118. //应用App Key
  119. 'key' => 'your_key',
  120. //语音验证码播放次数
  121. 'times' => 3,
  122. ],
  123. /*
  124. * -----------------------------------
  125. * Alidayu
  126. * 阿里大鱼代理器
  127. * -----------------------------------
  128. * website:http://www.alidayu.com
  129. * support template sms.
  130. */
  131. 'Alidayu' => [
  132. //请求地址
  133. 'sendUrl' => 'http://gw.api.taobao.com/router/rest',
  134. //淘宝开放平台中,对应阿里大鱼短信应用的App Key
  135. 'appKey' => 'your_app_key',
  136. //淘宝开放平台中,对应阿里大鱼短信应用的App Secret
  137. 'secretKey' => 'your_secret_key',
  138. //短信签名,传入的短信签名必须是在阿里大鱼“管理中心-短信签名管理”中的可用签名
  139. 'smsFreeSignName' => 'your_sms_free_sign_name',
  140. //被叫号显(用于语音通知),传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请或购买的号码
  141. 'calledShowNum' => null,
  142. ],
  143. /*
  144. * -----------------------------------
  145. * SendCloud
  146. * -----------------------------------
  147. * website: http://sendcloud.sohu.com/sms/
  148. * support template sms.
  149. */
  150. 'SendCloud' => [
  151. 'smsUser' => 'your_SMS_USER',
  152. 'smsKey' => 'your_SMS_KEY',
  153. ],
  154. /*
  155. * -----------------------------------
  156. * SmsBao
  157. * -----------------------------------
  158. * website: http://www.smsbao.com
  159. * support content sms.
  160. */
  161. 'SmsBao' => [
  162. //注册账号
  163. 'username' => 'your_username',
  164. //账号密码(明文)
  165. 'password' => 'your_password',
  166. ],
  167. /*
  168. * -----------------------------------
  169. * Qcloud
  170. * 腾讯云
  171. * -----------------------------------
  172. * website:http://www.qcloud.com
  173. * support template sms.
  174. */
  175. 'Qcloud' => [
  176. 'appId' => 'your_app_id',
  177. 'appKey' => 'your_app_key',
  178. ],
  179. /*
  180. * -----------------------------------
  181. * Aliyun
  182. * 阿里云
  183. * -----------------------------------
  184. * website:https://www.aliyun.com/product/sms
  185. * support template sms.
  186. */
  187. 'Aliyun' => [
  188. 'accessKeyId' => 'LTAIbDiBoIyqfRjk',
  189. 'accessKeySecret' => '1Ymm4p4tbVsEtMAyhXx4XnBQ6PmjSJ',
  190. 'signName' => '阅路文化',
  191. 'regionId' => 'cn-beijing'
  192. ],
  193. ],
  194. ];