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 4w 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 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity57

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

2830d 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.7M3.4k](/packages/craftcms-cms)[illuminate/http

The Illuminate Http package.

11938.5M8.1k](/packages/illuminate-http)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5226.7k](/packages/simplestats-io-laravel-client)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1239.7k25](/packages/fleetbase-core-api)

PHPackages © 2026

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