PHPackages                             jackwiy/sendcloud - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. jackwiy/sendcloud

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

jackwiy/sendcloud
=================

v1.0(7y ago)016MITPHPPHP &gt;=5.6

Since Nov 15Pushed 7y agoCompare

[ Source](https://github.com/Jack--Wang/Laravel-SendCloud)[ Packagist](https://packagist.org/packages/jackwiy/sendcloud)[ RSS](/packages/jackwiy-sendcloud/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Laravel-SendCloud
=================

[](#laravel-sendcloud)

Laravel 5.X 的 SendCloud 驱动

##### 优点：

[](#优点)

普通发送方式完全兼容官方用法，可随时修改配置文件改为其他驱动，而不需要改动业务代码

安装
--

[](#安装)

在项目目录下执行

```
composer require jackwiy/sendcloud

```

配置
--

[](#配置)

修改 `config/app.php`，添加服务提供者

```
'providers' => [
   // 添加这行
    JackWiy\Mail\SendCloudServiceProvider::class,
];
```

在 `.env` 中配置你的密钥， 并修改邮件驱动为 `sendcloud`

```
MAIL_DRIVER=sendcloud

SEND_CLOUD_USER=     # 创建的 api_user
SEND_CLOUD_KEY=      # 分配的 api_key
SEND_CLOUD_TIMEOUT=  # 请求超时 api_timeout
```

使用
--

[](#使用)

#### 普通发送：

[](#普通发送)

用法完全和系统自带的一样, 具体请参照官方文档：

```
Mail::send('emails.welcome', $data, function ($message) {
    $message->from('us@example.com', 'Laravel');

    $message->to('foo@example.com')->cc('bar@example.com');
});
```

#### 模板发送

[](#模板发送)

用法和普通发送类似，不过需要将 `body` 设置为 `SendCloudTemplate` 对象

> 使用模板发送不与其他邮件驱动兼容 ！！！

```
// 模板变量
$bind_data = ['url' => 'http://jackwiy.me'];
$template = new SendCloudTemplate('模板名', $bind_data);

Mail::raw($template, function ($message) {
    $message->from('us@example.com', 'Laravel');

    $message->to('foo@example.com')->cc('bar@example.com');
});
```

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2785d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5044378?v=4)[Jack.Wang](/maintainers/jackwiy)[@jackwiy](https://github.com/jackwiy)

### Embed Badge

![Health badge](/badges/jackwiy-sendcloud/health.svg)

```
[![Health](https://phpackages.com/badges/jackwiy-sendcloud/health.svg)](https://phpackages.com/packages/jackwiy-sendcloud)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[jdavidbakr/mail-tracker

Logs and tracks all outgoing emails from Laravel

6231.3M1](/packages/jdavidbakr-mail-tracker)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)[spatie/laravel-export

Create a static site bundle from a Laravel app

673139.5k6](/packages/spatie-laravel-export)[illuminate/mail

The Illuminate Mail package.

5910.6M479](/packages/illuminate-mail)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
