hyancat/sendcloud

SendCloud for Laravel 5.
746 6
Install
composer require hyancat/sendcloud
Latest Version:v0.3
PHP:>=7.0.0
License:MIT
Last Updated:Dec 6, 2016
Links: GitHub  ·  Packagist
Maintainer: HyanCat

sendcloud

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) {
});

Related Packages

erirk/paypalpayment

laravel-paypalpayment is simple package help you process direct credit card paym...

0
gabrieloliverio/laravel5-generators

Database metadata-based generators for Laravel 5

1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

628,058,007 9,707
laravel/framework

The Laravel Framework.

576,155,700 34,907
laravel/tinker

Powerful REPL for the Laravel framework.

485,678,092 7,440