PHPackages                             wyxos/laravel-mail-provision - 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. wyxos/laravel-mail-provision

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

wyxos/laravel-mail-provision
============================

Provision SparkPost sending/tracking domains and Cloudflare DNS records, and optionally configure SparkPost SMTP env settings.

v0.1.1(3mo ago)07MITPHPPHP ^8.2|^8.3|^8.4

Since Feb 14Pushed 1mo agoCompare

[ Source](https://github.com/wyxos/laravel-mail-provision)[ Packagist](https://packagist.org/packages/wyxos/laravel-mail-provision)[ RSS](/packages/wyxos-laravel-mail-provision/feed)WikiDiscussions main Synced 1mo ago

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

wyxos/laravel-mail-provision
============================

[](#wyxoslaravel-mail-provision)

Provision SparkPost sending/tracking domains and Cloudflare DNS records, and optionally configure SparkPost SMTP mail settings in your `.env`.

Install
-------

[](#install)

```
composer require wyxos/laravel-mail-provision
```

Required Env
------------

[](#required-env)

- `CLOUDFLARE_API_TOKEN`
- Either `CLOUDFLARE_ZONE_ID` or `CLOUDFLARE_ZONE_NAME` (otherwise it will infer a zone name from the last 2 labels of your domain)
- SparkPost API key (one of):
    - `SPARKPOST_PROVISIONING_KEY`
    - `SPARKPOST_API_KEY`
    - `MAIL_PASSWORD`

Usage
-----

[](#usage)

Provision using `APP_DOMAIN` (or `APP_URL` host) when the domain argument is omitted:

```
php artisan mail:provision-domain
```

Provision an explicit domain:

```
php artisan mail:provision-domain nudge.example.com
```

By default, the command updates your env file with SparkPost SMTP settings:

```
MAIL_MAILER=smtp
MAIL_HOST=smtp.sparkpostmail.com
MAIL_PORT=587
MAIL_USERNAME=SMTP_Injection
MAIL_PASSWORD=
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS=no-reply@
MAIL_FROM_NAME="${APP_NAME}"
```

Options:

- `--api-key=` Provide SparkPost API key (used for provisioning and written to `MAIL_PASSWORD` when configuring env)
- `--no-env` Skip writing env mail settings
- `--env-file=` Override env file path to update
- `--tracking=` Override tracking domain (defaults to `sp.`)
- `--skip-spf`, `--skip-dmarc` Skip those TXT records

Notes
-----

[](#notes)

- Packagist versions should be managed via git tags (e.g. v0.1.1).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance87

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Total

2

Last Release

93d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23614232?v=4)[Wyxos](/maintainers/wyxos)[@wyxos](https://github.com/wyxos)

---

Top Contributors

[![wyxos](https://avatars.githubusercontent.com/u/23614232?v=4)](https://github.com/wyxos "wyxos (3 commits)")

---

Tags

laravelemaildnscloudflaresparkpost

### Embed Badge

![Health badge](/badges/wyxos-laravel-mail-provision/health.svg)

```
[![Health](https://phpackages.com/badges/wyxos-laravel-mail-provision/health.svg)](https://phpackages.com/packages/wyxos-laravel-mail-provision)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

5762.6M6](/packages/propaganistas-laravel-disposable-email)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)[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)[osiemsiedem/laravel-autolink

A Laravel package for converting URLs in a given string of text into clickable links.

13126.3k](/packages/osiemsiedem-laravel-autolink)

PHPackages © 2026

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