承接 jacksunny/smssender 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jacksunny/smssender

Composer 安装命令:

composer require jacksunny/smssender

包简介

template-based sms send ,default to use aliyun sms service

README 文档

README

template-based sms send plugin for laravel 5.4+,default to use aliyun sms service

pre-condition

config service provider and the config file according to https://github.com/skychf/aliyunmns

How to install and configurate package

  1. install the laravel package composer require "jacksunny/smssender":"dev-master"

please check exist line "minimum-stability": "dev" in composer.json if failed

  1. prepare the config file required by the project skychf/aliyumns ,which name is config/aliyunmns.php

return [ 'end_point' => env('ALIYUN_END_POINT', 'http://locationid.mns.cn-hangzhou.aliyuncs.com/'), 'access_id' => env('ALIYUN_ACCESS_ID', 'APPKEYAPPKEY'), 'access_key' => env('ALIYUN_ACCESS_KEY', 'APPSECRETAPPSECRETAPPSECRETAPPSECRET'), 'topic_name' => env('ALIYUN_TOPIC_NAME', 'sms.topic-cn-hangzhou'), 'sms_sign_name' => env('ALIYUN_SMS_SIGN_NAME', 'SMSNAMESMSNAME'), 'sms_template_code' => env('ALIYUN_SMS_TEMPLATE_CODE', 'SMSCODESMSCODE') ];

  1. append new service provider file line in the section providers of file app.config after appended,it should looks like 'providers' => [ Illuminate\Auth\AuthServiceProvider::class, ...... Jacksunny\SmsSender\AliyunSmsSendServiceProvider::class, ],

  2. add test code to check if it works

    $sms_template_factory = App::make(\Jacksunny\SmsSender\SmsTemplateFactory::class); $params = [ 'receiver_name' => 'Jack', 'brand_name' => 'Jack Tech', 'user_name' => 'Lucy', 'user_mobile' => '13155556215', 'waybill' => '10166512487', 'service_tel' => '99952148', 'brand_name_clone' => 'Jack Tech', ]; $template = $sms_template_factory->getDispatchSmsTemplate(); $mobile = '13888888888'; $result = $template->sendSms($mobile, $params);

  3. please notify me if you got any problem or error on it,thank you!

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2017-06-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固