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

AbandonedArchivedLibrary[API Development](/categories/api)

nordsoftware/lumen-sparkpost
============================

SparkPost module for the Lumen PHP framework.

1.0.0(9y ago)116.6k1MITPHPPHP &gt;=5.6.0

Since Jun 8Pushed 3y ago10 watchersCompare

[ Source](https://github.com/digiaonline/lumen-sparkpost)[ Packagist](https://packagist.org/packages/nordsoftware/lumen-sparkpost)[ RSS](/packages/nordsoftware-lumen-sparkpost/feed)WikiDiscussions main Synced 1mo ago

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

Lumen SparkPost
===============

[](#lumen-sparkpost)

[![Test](https://github.com/digiaonline/lumen-sparkpost/actions/workflows/test.yml/badge.svg)](https://github.com/digiaonline/lumen-sparkpost/actions/workflows/test.yml)[![Coverage Status](https://camo.githubusercontent.com/a329ac993c8e0ba2ffd350216fd58a9114a6697846dece5d19fa55ac4eb9ab58/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f64696769616f6e6c696e652f6c756d656e2d737061726b706f73742f62616467652e737667)](https://coveralls.io/github/digiaonline/lumen-sparkpost)[![Code Climate](https://camo.githubusercontent.com/f2f9f5d4126a971d541492c70e8f286893440803039ef53c51abe727f760f65e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6e6f7264736f6674776172652f6c756d656e2d737061726b706f73742f6261646765732f6770612e737667)](https://codeclimate.com/github/nordsoftware/lumen-sparkpost)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/88887f91bb0a09fe6bba7bc8d8838ed6a4105c1f5086c1c8f0740c25c9a68f92/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f64696769616f6e6c696e652f6c756d656e2d737061726b706f73742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/digiaonline/lumen-sparkpost/?branch=main)[![Latest Stable Version](https://camo.githubusercontent.com/78dd310a5f3670ff4a9de6a52df2da5548548417cb75206a30487f72e475f780/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7264736f6674776172652f6c756d656e2d737061726b706f73742f76657273696f6e)](https://packagist.org/packages/nordsoftware/lumen-sparkpost)[![Total Downloads](https://camo.githubusercontent.com/c22a68972db381622caea50d8e990a2f68a54605afd61f4d4cf0823f6b5d8f79/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7264736f6674776172652f6c756d656e2d737061726b706f73742f646f776e6c6f616473)](https://packagist.org/packages/nordsoftware/lumen-sparkpost)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

[SparkPost](http://www.sparkpost.com/) module for the [Lumen PHP framework](http://lumen.laravel.com/).

Requirements
------------

[](#requirements)

- PHP 5.6 or newer
- [Lumen](https://lumen.laravel.com/) 5.1 or newer
- [Composer](http://getcomposer.org)

Setup
-----

[](#setup)

### Installation

[](#installation)

Run the following command to install the package through Composer:

```
composer require nordsoftware/lumen-sparkpost
```

### Configure

[](#configure)

Copy the configuration template in `config/sparkpost.php` to your application's `config` directory and modify according to your needs. For more information see the [Configuration Files](http://lumen.laravel.com/docs/configuration#configuration-files) section in the Lumen documentation.

The only required config is the API `key`, which you can get on your SparkPost account pages. Please note that the default configuration uses synchronous sending mode. If you want to change that, set the `async` option to `true`instead.

### Bootstrapping

[](#bootstrapping)

Add the following lines to `bootstrap/app.php`:

```
$app->register(Nord\Lumen\SparkPost\SparkPostServiceProvider::class);
```

Usage
-----

[](#usage)

You can now use `Nord\Lumen\SparkPost\SparkPostService` to access SparkPost anywhere in your application.

```
public function sendEmail(SparkPostService $sparkpost) {
    $results = $sparkpost->send([
        'from' => [
            'name' => 'From Envelope',
            'email' => 'from@sparkpostbox.com',
        ],
        'recipients' => [
            [
                'address' => [
                    'email' => 'john.doe@example.com',
                ],
            ],
        ],
        'template' => 'my-first-email',
    ]);
}
```

Contributing
------------

[](#contributing)

Please read the [guidelines](.github/CONTRIBUTING.md).

Running tests
-------------

[](#running-tests)

Clone the project and install its dependencies by running:

```
composer install
```

Run the following command to run the test suite:

```
vendor/bin/codecept run unit
```

License
-------

[](#license)

MIT, see [LICENSE](LICENSE).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.9% 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 ~320 days

Total

2

Last Release

3312d ago

Major Versions

0.1.0 → 1.0.02017-04-24

PHP version history (2 changes)0.1.0PHP &gt;=5.5.0

1.0.0PHP &gt;=5.6.0

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/2f766f3d06300e4e58806cac328ec6774408e2782497f3624f6112e0838bd057?d=identicon)[soderluk](/maintainers/soderluk)

![](https://www.gravatar.com/avatar/0946a262e18034427b1a75b8f2b9edc25395f33e5f514c616de79c69312e2b92?d=identicon)[kryysler](/maintainers/kryysler)

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

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

---

Top Contributors

[![hugovk](https://avatars.githubusercontent.com/u/1324225?v=4)](https://github.com/hugovk "hugovk (34 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (4 commits)")[![Jalle19](https://avatars.githubusercontent.com/u/1106133?v=4)](https://github.com/Jalle19 "Jalle19 (1 commits)")[![kryysler](https://avatars.githubusercontent.com/u/3352265?v=4)](https://github.com/kryysler "kryysler (1 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (1 commits)")

---

Tags

lumenlumen-php-frameworkphpsparkpostlaravellumensparkpost

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/nordsoftware-lumen-sparkpost/health.svg)

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

###  Alternatives

[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[shipu/php-aamarpay-payment

PHP client for Aamarpay Payment Gateway API

3214.6k](/packages/shipu-php-aamarpay-payment)[wxm/pdd-sdk

拼多多 SDK 封装, 调用简单、语义化增强。支持 Laravel/Lumen。

154.7k](/packages/wxm-pdd-sdk)

PHPackages © 2026

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