Package Data | |
---|---|
Maintainer Username: | Adge |
Maintainer Contact: | tim@nztim.com (Tim) |
Package Create Date: | 2016-11-10 |
Package Last Update: | 2016-11-10 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-02-08 15:03:52 |
Package Statistics | |
---|---|
Total Downloads: | 28 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 1 |
Total Forks: | 0 |
Total Open Issues: | 0 |
A wrapper and Laravel integration for Drew McLellan's Mailchimp v3
composer require nztim/mailchimp
config/app.php
: NZTim\Mailchimp\MailchimpServiceProvider::class,
'Mailchimp' => NZTim\Mailchimp\MailchimpFacade::class,
.env
value for MC_KEY
(API key)Mailchimp
facade or container instantiation is available, this requires the .env
value for the API keyMailchimp::check($listId, $emailAddress)
checks to see if an email address is subscribed to a list, returns booleanMailchimp::subscribe($listId, $emailAddress, $mergeFields = [], $confirm = false)
- adds a new subscriber to the list.
Mailchimp::error()
after a request to see if there was a problem.