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 3d 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 32% 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

2738d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/83261d76262ea0fa5f5928fbf2a191649f8883fbca2caa37db71ebfe7b2ec947?d=identicon)[jackwiy](/maintainers/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

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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