marceloeatworld/plunk-laravel

Laravel mail transport for Plunk API

0.1.0 2025-04-25 00:43 UTC

This package is auto-updated.

Last update: 2025-04-25 00:47:28 UTC


README

A Laravel mail transport for sending emails via the Plunk API. Works with both the official Plunk service and self-hosted Plunk instances.

Installation

You can install the package via Composer:

composer require MarceloEatWorld/plunk-laravel

Publish the config file:

php artisan vendor:publish --tag="plunk-config"

Configuration

Add these variables to your .env file:

MAIL_MAILER=plunk
PLUNK_API_KEY=your-plunk-api-key
PLUNK_API_URL=https://api.useplunk.com

For self-hosted Plunk installations, use:

PLUNK_API_URL=https://your-domain.com
PLUNK_API_ENDPOINT=/api/v1/send

Usage

Once configured, you can use the Laravel mailer as usual:

Mail::to('example@example.com')
    ->send(new App\Mail\WelcomeMail());

Credits

License

The MIT License (MIT). Please see the License File for more information.