xiaolong/yunpian-sms

云片短信发送,基于Laravel5.3插件。
33 5
Install
composer require xiaolong/yunpian-sms
Latest Version:v1.0.1
License:MIT
Last Updated:Mar 15, 2017
Links: GitHub  ·  Packagist
Maintainer: G-Bruin

yunpian-sms

基于laravel5.3.*以上版本的系统集成短信发送功能。

安装

  1. 安装包文件
composer require xiaolong/yunpian-sms

配置

Laravel 应用

  1. 注册 ServiceProvider:
XiaoLong\YunpianSMS\YunpianSMSServiceProvider::class,
  1. 创建配置文件:
php artisan vendor:publish
  1. 请修改应用根目录下的 config/yunpian.php 中对应的项即可;

  2. (可选)添加外观到 config/app.php 中的 aliases 部分:

'YunpianSMS' => XiaoLong\YunpianSMS\Facades\YunpianSMS::class,
  1. 在 ENV 中配置以下选项:
SMS_API_KEY=xxx
SMS_SEND_URL=xxx

6.使用

/*
* 手机号
* 短信模板
*/
\YunpianSMS::sendSMS('183xxxx1235',"【xxx】短信内容");

License

MIT

Related Packages

costa92/yunpian-sms

云片网络 短信发送,基于Laravel5.1版本以上的插件。

26 0
toplan/laravel-sms

A mobile phone number validation solution based on laravel

80,207 835
laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

8,725,294 258
kavenegar/laravel

laravel 4 and 5 kavenegar integration

356,409 85
rinvex/laravel-authy

Rinvex Authy is a simple wrapper for Authy TOTP, the best rated Two-Factor Authe...

77,746 32