besmarteeinc/laravel-mailchimp-driver

Custom Laravel Mailchimp mail driver

v1.0.1 2023-08-30 22:45 UTC

This package is auto-updated.

Last update: 2024-04-04 22:45:22 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:

// 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.