PHPackages                             digitspark/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. [API Development](/categories/api)
4. /
5. digitspark/sendcloud

ActiveLibrary[API Development](/categories/api)

digitspark/sendcloud
====================

0.03(3y ago)011MITPHPPHP &gt;=5.6

Since Sep 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/digitspark/sendcloud)[ Packagist](https://packagist.org/packages/digitspark/sendcloud)[ RSS](/packages/digitspark-sendcloud/feed)WikiDiscussions master Synced 1w ago

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

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

[](#laravel-sendcloud)

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

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

安装
--

[](#安装)

```
composer require digitspark/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://digitspark.com'];
$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

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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 ~0 days

Total

3

Last Release

1443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b2bf7c4d4cc9999f3329b280c925b906ea60b5c8749ad486e3beb09bbe5c6d47?d=identicon)[digitspark](/maintainers/digitspark)

---

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)")

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

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

The Illuminate Http package.

11938.5M8.2k](/packages/illuminate-http)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[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)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1349.3k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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