phpsms.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. <?php
  2. /*
  3. * config file for PhpSms
  4. */
  5. return [
  6. /*
  7. * agent use scheme
  8. * -------------------------------------------------------------------
  9. * Format: 'name' => scheme
  10. *
  11. * The scheme value include:
  12. * 1. weight (must be a positive integer)
  13. * 2. 'backup' (ignore upper/lower case)
  14. *
  15. * supported agents:
  16. * 'Log', 'SmsBao', 'Luosimao', 'YunTongXun', 'YunPian', 'SubMail', 'Ucpaas', 'JuHe', 'Alidayu', 'SendCloud'
  17. */
  18. 'scheme' => [
  19. 'Log',
  20. ],
  21. /*
  22. * agents config
  23. * -------------------------------------------------------------------
  24. * Note: agent name must be string.
  25. *
  26. */
  27. 'agents' => [
  28. /*
  29. * -----------------------------------
  30. * YunPian
  31. * 云片代理器
  32. * -----------------------------------
  33. * website:http://www.yunpian.com
  34. * support content sms.
  35. */
  36. 'YunPian' => [
  37. //用户唯一标识,必须
  38. 'apikey' => 'your api key',
  39. ],
  40. /*
  41. * -----------------------------------
  42. * YunTongXun
  43. * 云通讯代理器
  44. * -----------------------------------
  45. * website:http://www.yuntongxun.com/
  46. * support template sms.
  47. */
  48. 'YunTongXun' => [
  49. //主帐号,对应开官网发者主账号下的 ACCOUNT SID
  50. 'accountSid' => 'your account sid',
  51. //主帐号令牌,对应官网开发者主账号下的 AUTH TOKEN
  52. 'accountToken' => 'your account token',
  53. //应用Id,在官网应用列表中点击应用,对应应用详情中的APP ID
  54. //在开发调试的时候,可以使用官网自动为您分配的测试Demo的APP ID
  55. 'appId' => 'your app id',
  56. //请求地址
  57. //沙盒环境(用于应用开发调试):sandboxapp.cloopen.com
  58. //生产环境(用户应用上线使用):app.cloopen.com
  59. 'serverIP' => 'app.cloopen.com',
  60. //请求端口,生产环境和沙盒环境一致
  61. 'serverPort' => '8883',
  62. //被叫号显
  63. 'displayNum' => null,
  64. //语音验证码使用的语言类型
  65. 'voiceLang' => 'zh',
  66. //语音验证码播放次数
  67. 'playTimes' => 3,
  68. ],
  69. /*
  70. * -----------------------------------
  71. * SubMail
  72. * -----------------------------------
  73. * website:http://submail.cn/
  74. * support template sms.
  75. */
  76. 'SubMail' => [
  77. 'appid' => 'your app id',
  78. 'signature' => 'your app key',
  79. ],
  80. /*
  81. * -----------------------------------
  82. * luosimao
  83. * -----------------------------------
  84. * website:http://luosimao.com
  85. * support content sms.
  86. */
  87. 'Luosimao' => [
  88. //短信 API key
  89. //在管理中心->短信->触发发送下查看
  90. 'apikey' => 'your api key',
  91. //语言验证 API key
  92. //在管理中心->语音->语音验证下查看
  93. 'voiceApikey' => 'your voice api key',
  94. ],
  95. /*
  96. * -----------------------------------
  97. * ucpaas
  98. * -----------------------------------
  99. * website:http://ucpaas.com
  100. * support template sms.
  101. */
  102. 'Ucpaas' => [
  103. //主帐号,对应开官网发者主账号下的 ACCOUNT SID
  104. 'accountSid' => 'your account sid',
  105. //主帐号令牌,对应官网开发者主账号下的 AUTH TOKEN
  106. 'accountToken' => 'your account token',
  107. //应用Id,在官网应用列表中点击应用,对应应用详情中的APP ID
  108. //在开发调试的时候,可以使用官网自动为您分配的测试Demo的APP ID
  109. 'appId' => 'your app id',
  110. ],
  111. /*
  112. * -----------------------------------
  113. * JuHe
  114. * 聚合数据
  115. * -----------------------------------
  116. * website:https://www.juhe.cn
  117. * support template sms.
  118. */
  119. 'JuHe' => [
  120. //应用App Key
  121. 'key' => 'your key',
  122. //语音验证码播放次数
  123. 'times' => 3,
  124. ],
  125. /*
  126. * -----------------------------------
  127. * Alidayu
  128. * 阿里大鱼代理器
  129. * -----------------------------------
  130. * website:http://www.alidayu.com
  131. * support template sms.
  132. */
  133. 'Alidayu' => [
  134. //请求地址
  135. 'sendUrl' => 'http://gw.api.taobao.com/router/rest',
  136. //淘宝开放平台中,对应阿里大鱼短信应用的App Key
  137. 'appKey' => 'your app key',
  138. //淘宝开放平台中,对应阿里大鱼短信应用的App Secret
  139. 'secretKey' => 'your secret key',
  140. //短信签名,传入的短信签名必须是在阿里大鱼“管理中心-短信签名管理”中的可用签名
  141. 'smsFreeSignName' => 'your sms free sign name',
  142. //被叫号显(用于语音通知),传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请或购买的号码
  143. 'calledShowNum' => null,
  144. ],
  145. /*
  146. * -----------------------------------
  147. * SendCloud
  148. * -----------------------------------
  149. * website: http://sendcloud.sohu.com/sms/
  150. * support template sms.
  151. */
  152. 'SendCloud' => [
  153. //SMS_USER
  154. 'smsUser' => 'your SMS_USER',
  155. //SMS_KEY
  156. 'smsKey' => 'your SMS_KEY',
  157. ],
  158. /*
  159. * -----------------------------------
  160. * SmsBao
  161. * -----------------------------------
  162. * website: http://www.smsbao.com
  163. * not support template sms.
  164. * 不支持模板变量短信
  165. * support content sms.
  166. * 支持内容短信
  167. * support voice sms.
  168. * 支持语音验证码
  169. * 支持自定义短信签名
  170. * 最低消费5元(50条) 最低消费单价0.04元(100万条)
  171. */
  172. 'SmsBao' => [
  173. //username
  174. 'username' => 'your username',
  175. //password
  176. 'password' => 'your password',
  177. ],
  178. ],
  179. ];