think.studio/laravel-mail-marketing

Simple application layer where you can quickly change your mail marketing service

1.2.0 2024-01-04 16:27 UTC

This package is auto-updated.

Last update: 2024-12-04 18:21:43 UTC


README

Packagist License Packagist Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality

Simple application layer where you can quickly change your mail marketing service

Services

  • Mailchimp

Installation

Install the package via composer:

composer require think.studio/laravel-mail-marketing

Also need install your driver package:

# mailchimp
composer require drewm/mailchimp-api
# campaignmonitor
composer require campaignmonitor/createsend-php

You can publish the config file with:

php artisan vendor:publish --provider="MailMarketing\ServiceProvider" --tag="config"

Configuration in .env (optional)

MAILCHIMP_API_KEY=101....yj6-us15

Usage

\MailMarketing\Facades\MailMarketing::driver()
            ->addMembersToList(
                $this->listId,
                $this->members
            );
// or
MailMarketing::addList($name, $data);
// or
MailMarketing::driver('mailchimp')->addList($name, $data);

A complete list of methods can be found in the interface

Credits

  • Think Studio