grork / mailchimp
Easily manage Mailchimp API v3
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 2
pkg:composer/grork/mailchimp
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-12-14 03:02:27 UTC
README
This class will help you to manage the MailChimp API v3.
It's not complete, but the most important methods are included.
Getting started
- Install package with composer:
composer require grork/mailchimp=dev-master. If you don't want to use composer, you can download the repository and extract it in your project folder. - Require the autoload with
require __DIR__ . '/vendor/autoload.php'or withrequire __DIR__ . '/src/Mailchimp.php(or wherever you placed the folder) - Init the class with
$mailchimp = new Grork\Mailchimp( '<API-KEY-HERE>' ). You can obtain your API Key logging into MailChimp > Account > Extras > API Keys > Create A Key
It's better to init the class with the following code, catching the exceptions:
try {
$mailchimp = new Grork\Mailchimp( '<API-KEY-HERE>' );
} catch( Exception $e ) {
die( 'Error: ' . $e->getMessage() );
}
Documentation
For the documentation, you can check the wiki.