定制 hyancat/sendcloud 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

hyancat/sendcloud

最新稳定版本:v0.3

Composer 安装命令:

composer require hyancat/sendcloud

包简介

Sendcloud for Laravel 5.

README 文档

README

Sendcloud for laravel 5.

安装

  1. 安装依赖包:

     composer require hyancat/sendcloud
    
  2. 项目引入:

     Hyancat\Sendcloud\SendCloudServiceProvider::class
    
  3. 配置文件:

     php artisan vendor:publish
    

然后配置 SENDCLOUD_API_USER SENDCLOUD_API_KEY 等...

使用

use Hyancat\Sendcloud\SendCloudFacade as SendCloud;
  • 普通发送
SendCloud::send('emails.welcome', ['name'=> '小明'], function (SendCloudMessage $message) {
	$message->to(['hello@laravel.com', 'word@laravel.com'])->subject('你好!');
})->success(function ($response) {
})->failure(function ($response, $error) {
});
  • 模板发送
SendCloud::sendTemplate('sendcloud_test_template', ['name'=> ['小明', '小红']], function (SendCloudMessage $message) {
	$message->to(['hello@laravel.com', 'word@laravel.com'])->subject('你好!');
})->success(function ($response) {
})->failure(function ($response, $error) {
});

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-13