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(4mo ago)011MITPHPPHP ^8.2|^8.3|^8.4

Since Feb 14Pushed 3mo 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 today

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

35

—

LowBetter than 77% of packages

Maintenance78

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

139d 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

[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[propaganistas/laravel-disposable-email

Disposable email validator

6023.0M7](/packages/propaganistas-laravel-disposable-email)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k9.0M69](/packages/spatie-laravel-responsecache)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)

PHPackages © 2026

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