2017 © Pedro Peláez
 

library sendcloud

SendCloud for Laravel 5.

image

hyancat/sendcloud

SendCloud for Laravel 5.

  • Tuesday, December 6, 2016
  • by HyanCat
  • Repository
  • 1 Watchers
  • 6 Stars
  • 345 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

sendcloud

Sendcloud for laravel 5., (*1)

安装

  1. 安装依赖包:, (*2)

    composer require hyancat/sendcloud
  2. 项目引入:, (*3)

    Hyancat\Sendcloud\SendCloudServiceProvider::class
  3. 配置文件:, (*4)

    php artisan vendor:publish

然后配置 SENDCLOUD_API_USER SENDCLOUD_API_KEY 等..., (*5)

使用

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

The Versions

06/12 2016

dev-develop

dev-develop

SendCloud for Laravel 5.

  Sources   Download

MIT

The Requires

 

The Development Requires

17/09 2015

dev-master

9999999-dev

Sendcloud for Laravel 5.

  Sources   Download

MIT

The Requires

 

17/09 2015

v0.3

0.3.0.0

Sendcloud for Laravel 5.

  Sources   Download

MIT

The Requires

 

17/09 2015

v0.2

0.2.0.0

Sendcloud for Laravel 5.

  Sources   Download

MIT

The Requires

 

17/09 2015

v0.1

0.1.0.0

Sendcloud for Laravel 5.

  Sources   Download

MIT

The Requires