miqi/send-sms

laravel 发送短信

dev-master 2017-09-13 09:18 UTC

This package is not auto-updated.

Last update: 2024-09-29 03:47:08 UTC


README

基于laravel5的移动手机短信服务包

支持:创蓝253, 容联·云通讯

安装

通过Composer

composer require miaoqi/send-sms dev-master

composer.json

"miaoqi/send-sms": "dev-master"

配置

//service provider
'providers' => [
        // ...
        Miaoqi\SendSms\SendSmsServiceProvider::class
    ]
    
//aliases
'aliases' => [
    //...
    'SendSms' => Miaoqi\SendSms\Sms::class    
]

//create the configuration file
php artisan vendor:publish

配置项

以下为该程序支持的短信代理平台配置参考

//The supported SMS platform is 创蓝253
'api_send_url' => 'http://sms.253.com/msg/send',  //Send SMS interface URL
'api_account' => 'your_account',                  //user
'api_password' => 'your_password'                 //password

//The supported SMS platform is 容联·云通讯
'api_account_sid' => 'your_account_sid', //The primary account,the AUTH TOKEN in the main account of the official website.
'api_auth_token' => 'your_auth_token',   //Master account token,the AUTH TOKEN in the main account of the official website.
'api_app_id' => 'your_app_id',           //APP ID.
'api_server_ip' => 'server_ip',          //Request the address,sandbox environment:sandboxapp.cloopen.com,the production environment:app.cloopen.com.
'api_server_port' => 'server_port',      //Request port,The production environment is consistent with the sandbox environment.
'api_soft_version' => 'soft_version',    //The version number of REST,get it in the official website documentation.

安全

如果您发现任何安全相关问题,请通过电子邮件 miaoq92@163.com 联系,而不是使用问题追踪器。