PHPackages                             naux/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. naux/sendcloud

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

naux/sendcloud
==============

1.1.6(7y ago)24544.7k↓63.8%46[1 issues](https://github.com/NauxLiu/Laravel-SendCloud/issues)MITPHPPHP &gt;=5.6

Since Dec 12Pushed 6y ago8 watchersCompare

[ Source](https://github.com/NauxLiu/Laravel-SendCloud)[ Packagist](https://packagist.org/packages/naux/sendcloud)[ RSS](/packages/naux-sendcloud/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

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

[](#laravel-sendcloud)

供 Laravel 5.X 使用的 SendCloud 驱动，发送方式完全兼容官方用法，可随时修改配置文件改为其他驱动，而不需要改动业务代码

> `Laravel 5.5` 以下版本请使用 `1.1.3` 版本，并手动添加 ServiceProvier 到 `config/app.php`

安装
--

[](#安装)

```
composer require naux/sendcloud

```

配置
--

[](#配置)

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

```
MAIL_DRIVER=sendcloud

SEND_CLOUD_USER=   # 创建的 api_user
SEND_CLOUD_KEY=    # 分配的 api_key
```

使用
--

[](#使用)

#### 普通方式发送：

[](#普通方式发送)

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

```
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://naux.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

41

—

FairBetter than 87% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community21

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 87.2% of commits — single point of failure

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

Every ~183 days

Recently: every ~209 days

Total

8

Last Release

2568d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/22071ff5935f95277f8b0c794c2f23703e6de307ed0e65e25e7c3a878a45c012?d=identicon)[NauxLiu](/maintainers/NauxLiu)

---

Top Contributors

[![nauxliu](https://avatars.githubusercontent.com/u/9570112?v=4)](https://github.com/nauxliu "nauxliu (34 commits)")[![wangyan](https://avatars.githubusercontent.com/u/382993?v=4)](https://github.com/wangyan "wangyan (2 commits)")[![Aufree](https://avatars.githubusercontent.com/u/5310542?v=4)](https://github.com/Aufree "Aufree (1 commits)")[![pihc](https://avatars.githubusercontent.com/u/17465928?v=4)](https://github.com/pihc "pihc (1 commits)")[![yushine](https://avatars.githubusercontent.com/u/728951?v=4)](https://github.com/yushine "yushine (1 commits)")

---

Tags

laravel-sendcloudmail-driversendcloud

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)[laravel-notification-channels/expo

Expo Notifications Channel for Laravel

67628.6k1](/packages/laravel-notification-channels-expo)[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.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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