PHPackages                             hampel/swiftmailer-sparkpost - 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. hampel/swiftmailer-sparkpost

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

hampel/swiftmailer-sparkpost
============================

A Swift Mailer Transport for SparkPost

1.2.0(5y ago)0117MITPHPPHP &gt;=7.0.0

Since Sep 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hampel/swiftmailer-sparkpost)[ Packagist](https://packagist.org/packages/hampel/swiftmailer-sparkpost)[ Docs](https://bitbucket.org/hampel/swiftmailer-sparkpost)[ RSS](/packages/hampel-swiftmailer-sparkpost/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (5)Used By (0)

Swiftmailer SparkPost Driver
============================

[](#swiftmailer-sparkpost-driver)

[![Latest Version on Packagist](https://camo.githubusercontent.com/0f05a3742cb5c62ff0e7a56699dd78e458374296cd7b30734c1afdbf3d91ba30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f68616d70656c2f73776966746d61696c65722d737061726b706f73742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hampel/swiftmailer-sparkpost)[![Total Downloads](https://camo.githubusercontent.com/7b9aea6981fa44f46211ff9f205bacf76d117d2212e9ac8d291a13e77bafadab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f68616d70656c2f73776966746d61696c65722d737061726b706f73742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hampel/swiftmailer-sparkpost)[![Open Issues](https://camo.githubusercontent.com/2136d86742b60c0c34ac624a6c0ddba4449f811708a7202d9b68f556e165d5ee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732d7261772f68616d70656c2f73776966746d61696c65722d737061726b706f73742e7376673f7374796c653d666c61742d737175617265)](https://github.com/hampel/swiftmailer-sparkpost/issues)[![License](https://camo.githubusercontent.com/97ccb383ad8d5abaf050b69240547ebae28d6e6c0ef1dd22112e475723e59a87/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f68616d70656c2f73776966746d61696c65722d737061726b706f73742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/hampel/swiftmailer-sparkpost)

By [Simon Hampel](mailto:simon@hampelgroup.com)

Description
-----------

[](#description)

Standalone implementation of Laravel's SparkPost Mail Driver from [illuminate/mail](https://github.com/illuminate/mail) - provides a Swift Mailer v6 implementation for SparkPost.

This package is inspired by:  which uses the SparkPost mail driver from Laravel 5.8.x

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require hampel/swiftmailer-sparkpost
```

Usage
-----

[](#usage)

The SparkPost options available are defined in the API: [SparkPost options](https://developers.sparkpost.com/api/transmissions/#header-request-body)

```
$sparkpostOptions = [
	'options' => [
		'open_tracking' => false,
		'click_tracking' => true,
		'transactional' => true,
	],
	'campaign_id' => 'foo',
];

$transport = new SparkPostTransport(
	new GuzzleHttp\Client,
	'MYSPARKPOSTAPIKEY',
	$sparkpostOptions
);

// create a new Swift_Message
$message = ...

$result = $transport->send($message);
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~4 days

Total

4

Last Release

2116d ago

### Community

Maintainers

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

---

Top Contributors

[![simonhampel](https://avatars.githubusercontent.com/u/443890?v=4)](https://github.com/simonhampel "simonhampel (21 commits)")

---

Tags

sparkpostswiftmailerswiftmailer-transport

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hampel-swiftmailer-sparkpost/health.svg)

```
[![Health](https://phpackages.com/badges/hampel-swiftmailer-sparkpost/health.svg)](https://phpackages.com/packages/hampel-swiftmailer-sparkpost)
```

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NotifyX、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

687114.3k8](/packages/guanguans-notify)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

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

PHPackages © 2026

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