besmarteeinc / laravel-mailchimp-driver
Custom Laravel Mailchimp mail driver
Requires
- php: ^8.3
- illuminate/contracts: ^11.0
- mailchimp/transactional: ^1.0.59
Requires (Dev)
- laravel/pint: ^1.20
- nunomaduro/collision: ^8.6.1
- orchestra/testbench: ^9.9
- pestphp/pest: ^3.7.4
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.1
This package is auto-updated.
Last update: 2025-03-11 10:21:56 UTC
README
A simple Mailchimp mail driver package for Laravel extending the abstract mail transport functionality.
Installation
You can install the package via composer by adding this to your composer.json:
{ "repositories": [ // ... { "type": "github", "url": "https://github.com/besmarteeinc/laravel-mailchimp-driver.git" } ] }
Then run:
composer require besmarteeinc/laravel-mailchimp-driver
In your services.php
config file, add the following configuration:
// config/services.php return [ // ... 'mailchimp' => [ 'secret' => env('MAILCHIMP_KEY'), ], ];
Then set your MAILCHIMP_KEY
in your env.
MAILCHIMP_KEY=<your key>
Add the Mailchimp mailer to your config/mail.php
:
return [ // ... 'mailers' => [ // ... 'mailchimp' => [ 'transport' => 'mailchimp', ], ], // ... ]
Set the MAIL_MAILER
value in your env to mailchimp
to enable it:
MAIL_MAILER=mailchimp
Testing
./vendor/bin/pest
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.