Download the PHP package adgek/mailchimp without Composer
On this page you can find all versions of the php package adgek/mailchimp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download adgek/mailchimp
More information about adgek/mailchimp
Files in adgek/mailchimp
Download adgek/mailchimp
More information about adgek/mailchimp
Files in adgek/mailchimp
Vendor adgek
Package mailchimp
Short Description Mailchimp API wrapper, includes Laravel 5 support.
License MIT
Package mailchimp
Short Description Mailchimp API wrapper, includes Laravel 5 support.
License MIT
Please rate this library. Is it a good library?
Informations about the package mailchimp
Mailchimp
A wrapper and Laravel integration for Drew McLellan's Mailchimp v3
Installation
composer require nztim/mailchimp- For Laravel 5 support:
- Add the service provider to
config/app.php:NZTim\Mailchimp\MailchimpServiceProvider::class, - Register the facade:
'Mailchimp' => NZTim\Mailchimp\MailchimpFacade::class, - Add
.envvalue forMC_KEY(API key)
- Add the service provider to
Usage
- For Laravel 5, the
Mailchimpfacade or container instantiation is available, this requires the.envvalue for the API key Mailchimp::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.- $mergeFields - optional array of merge fields
- $confirm - optional boolean, true = send confirmation email, false = immediately subscribe (permission already obtained)
- Errors
- All methods return false for errors
- Check
Mailchimp::error()after a request to see if there was a problem. - Typical errors include networking/communications, incorrect API key, list doesn't exist
- Gotchas: the API throws an error when you
- Specify a merge field name with incorrect capitalisation
- Omit a required merge field when adding a new member
All versions of mailchimp with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
The package adgek/mailchimp contains the following files
Loading the files please wait ...