PHPackages                             frontier-sh/sinkhole-laravel - 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. frontier-sh/sinkhole-laravel

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

frontier-sh/sinkhole-laravel
============================

Laravel mail transport for Sinkhole — a Cloudflare Worker email trap

v1.0.0(3mo ago)0880↑940%MITPHPPHP ^8.1

Since Mar 30Pushed 3mo agoCompare

[ Source](https://github.com/frontier-sh/sinkhole-laravel)[ Packagist](https://packagist.org/packages/frontier-sh/sinkhole-laravel)[ Docs](https://github.com/frontier-sh/sinkhole-laravel)[ RSS](/packages/frontier-sh-sinkhole-laravel/feed)WikiDiscussions main Synced 4w ago

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

Sinkhole for Laravel
====================

[](#sinkhole-for-laravel)

A Laravel mail transport that sends all outgoing email to a [Sinkhole](https://github.com/frontier-sh/sinkhole) instance — a Cloudflare Worker email trap with a web UI.

Use it in staging or local development to capture emails without delivering them to real inboxes.

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

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12

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

[](#installation)

```
composer require frontier-sh/sinkhole
```

The service provider is auto-registered via Laravel's package discovery.

Configuration
-------------

[](#configuration)

Add the transport to `config/mail.php`:

```
'mailers' => [
    // ...

    'sinkhole' => [
        'transport' => 'sinkhole',
        'endpoint'  => env('SINKHOLE_ENDPOINT'),
        'api_key'   => env('SINKHOLE_API_KEY'),
        'channel'   => env('SINKHOLE_CHANNEL', 'default'),
    ],
],
```

Set your environment variables:

```
MAIL_MAILER=sinkhole
SINKHOLE_ENDPOINT=https://your-worker.workers.dev
SINKHOLE_API_KEY=your-api-key
SINKHOLE_CHANNEL=staging
```

VariableDescription`SINKHOLE_ENDPOINT`The URL of your Sinkhole Worker`SINKHOLE_API_KEY`An API key created from the Sinkhole web UI`SINKHOLE_CHANNEL`Optional label to group emails (defaults to `default`)What gets captured
------------------

[](#what-gets-captured)

- To, From, Subject
- HTML and plain text bodies
- All email headers
- Attachments (base64-encoded, stored in R2)
- Custom headers like `X-Tag` and `X-Metadata-*` are displayed in the Sinkhole UI

License
-------

[](#license)

MIT

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance82

Actively maintained with recent releases

Popularity20

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

Unknown

Total

1

Last Release

92d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f7c428ca949c9eb52e787be71951cfeb57a0e5284fe25ccd3f5a5e0d174cdcd6?d=identicon)[frontier-sh](/maintainers/frontier-sh)

---

Top Contributors

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

---

Tags

laravelmailemaildevelopmenttransportstagingsinkhole

### Embed Badge

![Health badge](/badges/frontier-sh-sinkhole-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/frontier-sh-sinkhole-laravel/health.svg)](https://phpackages.com/packages/frontier-sh-sinkhole-laravel)
```

###  Alternatives

[propaganistas/laravel-disposable-email

Disposable email validator

6012.9M7](/packages/propaganistas-laravel-disposable-email)[notebrainslab/filament-email-templates

A powerful and flexible Email Template Management plugin for Filament v4 and v5.

121.1k](/packages/notebrainslab-filament-email-templates)

PHPackages © 2026

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