yaroslawww / laravel-mail-marketing
This package is abandoned and no longer maintained.
The author suggests using the think.studio/laravel-mail-marketing package instead.
Simple application layer where you can quickly change your mail marketing service
1.2.0
2024-01-04 16:27 UTC
Requires
- php: ^8.1
- illuminate/support: ^9.0|^10.0
Requires (Dev)
- campaignmonitor/createsend-php: ^7.0
- drewm/mailchimp-api: ^2.5
- friendsofphp/php-cs-fixer: ^3.46
- orchestra/testbench: ^8.19
- phpunit/phpunit: ^10.5
- psalm/plugin-laravel: ^2.8
- vimeo/psalm: ^5.14
README
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