marceloeatworld / plunk-laravel
Laravel mail transport for Plunk API
0.1.0
2025-04-25 00:43 UTC
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.0
- illuminate/mail: ^8.0|^9.0|^10.0
- illuminate/support: ^8.0|^9.0|^10.0
Requires (Dev)
- orchestra/testbench: ^6.0|^7.0|^8.0
- phpunit/phpunit: ^9.0|^10.0
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
- Marcelo EatWorld
- All Contributors
License
The MIT License (MIT). Please see the License File for more information.