sms.php 594 B

123456789101112131415161718192021222324252627
  1. <?php
  2. return [
  3. // HTTP 请求的超时时间(秒)
  4. 'timeout' => 5.0,
  5. // 默认发送配置
  6. 'default' => [
  7. // 网关调用策略,默认:顺序调用
  8. 'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class,
  9. // 默认可用的发送网关
  10. 'gateways' => [
  11. 'yunpian',
  12. ],
  13. ],
  14. // 可用的网关配置
  15. 'gateways' => [
  16. 'errorlog' => [
  17. 'file' => '/tmp/easy-sms.log',
  18. ],
  19. 'yunpian' => [
  20. 'api_key' => '0c9c87c41aac355520d47d3c84e5a532',
  21. ],
  22. ],
  23. ];