PHPackages                             nblakefriend/mailchimp-apiv3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. nblakefriend/mailchimp-apiv3

Abandoned → [mailchimp/mailchimp-marketing-php](/?search=mailchimp%2Fmailchimp-marketing-php)Library[API Development](/categories/api)

nblakefriend/mailchimp-apiv3
============================

Complete PHP Wrapper for MailChimp API v3.0.

1.0.4(9y ago)23.8k1[1 issues](https://github.com/nblakefriend/MailChimp-API3.0-Wrapper/issues)2MITPHPPHP &gt;=5.3.19

Since Nov 18Pushed 3y ago1 watchersCompare

[ Source](https://github.com/nblakefriend/MailChimp-API3.0-Wrapper)[ Packagist](https://packagist.org/packages/nblakefriend/mailchimp-apiv3)[ Docs](https://github.com/nblakefriend/MailChimp-API3.0-Wrapper.git)[ RSS](/packages/nblakefriend-mailchimp-apiv3/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (7)Used By (2)

MailChimp API v3.0 PHP Wrapper
==============================

[](#mailchimp-api-v30-php-wrapper)

*DEPRECATED*:
-------------

[](#deprecated)

This project is no longer maintained and is honestly not good. MC offers official 3.0 libraries now: [mailchimp.com/developer](https://mailchimp.com/developer)

PHP wrapper for the MailChimp API v 3.0.

### Dependencies

[](#dependencies)

- GuzzleHttp
- PHP &gt; 5.4

*Project still in the works. More documentation to come*

### Installing

[](#installing)

Using Composer: `composer require nblakefriend/mailchimp-apiv3`

### Getting Started

[](#getting-started)

When downloading from composer *(recommended)*:

1. In `vendor/nblakefriend/mailchimp-apiv3/src` create `config.ini` file with structure:

```
[api_keys]
key1[api_keys] = "yourmcapikey-usx"
key1[active] = true

```

Multiple accounts can be configured in this config file.

```
[api_keys]
key1[api_keys] = "yourmcapikey-usx"
key1[active] = true

key2[api_keys] = "yourmcapikey-usx"
key2[active] = false

```

Whichever key\[active\] is true will be used.

***config.ini is excluded in the .gitignore file. Make sure this is not changed!***

2. Instantiate with `$mc = new MailChimp\MailChimp`;
3. `print_r($mc->getAccountInfo());` should return the MailChimp API Root call.

If downloading this repo directly:

1. From your command line, navigate to the MailChimp folder and run `composer update` to download Dependencies.
2. Add the package to your add `require_once 'MailChimp/vendor/autoload.php'` in your file.
3. Instantiate with `$mc = new MailChimp\MailChimp`;
4. `print_r($mc->getAccountInfo());` should return the MailChimp API Root call.

### Using the Wrapper

[](#using-the-wrapper)

Each MailChimp collections *(lists, campaigns, e-commerce etc.)* is accessed using a method found at the bottom of the `MailChimp.php` file that instantiates the collection's class.

**For example:***Assuming your MailChimp instance is stored in the `$mc` variable*

#### Lists

[](#lists)

`$mc->lists()->getLists();`

This would return the response from calling /lists [http://developer.mailchimp.com/documentation/mailchimp/reference/lists/#read-get\_lists](http://developer.mailchimp.com/documentation/mailchimp/reference/lists/#read-get_lists)

#### E-commerce

[](#e-commerce)

Adding a new store customer:

`$mc->ecommerce()->customers()->addCustomer("STORE123", "CUST123", "freddie@freddiesjokes.com", true);`

This would create a new customer to the store with id `STORE123` with the customer id `CUST123` and the email address `freddie@freddiesjokes.com` and an opt-in status of true which subscribes the customer to the list.

**Collection Reference**

- authorizedApps()
- automations()
- batchOps()
- campaignFolders()
- campaigns()
- conversations()
- ecommerce()
- - ecommerce()-&gt;carts()
- - ecommerce()-&gt;customers()
- - ecommerce()-&gt;orders()
- - ecommerce()-&gt;products()
- fileManager()
- lists()
- reports()
- templateFolders()
- templates()

**[See complete list of available methods for each class/collection here](https://nblakefriend.github.io/MailChimp-API3.0-Wrapper/index.html)**

Docs also able to be run locally from the `docs/index.html`

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

3460d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dad91462d36a34b105cfdae5f0587d9c338d0e365548c9e2887128d7ef820436?d=identicon)[nblakefriend](/maintainers/nblakefriend)

---

Top Contributors

[![nblakefriend](https://avatars.githubusercontent.com/u/3058098?v=4)](https://github.com/nblakefriend "nblakefriend (9 commits)")

---

Tags

phpapimailchimp

### Embed Badge

![Health badge](/badges/nblakefriend-mailchimp-apiv3/health.svg)

```
[![Health](https://phpackages.com/badges/nblakefriend-mailchimp-apiv3/health.svg)](https://phpackages.com/packages/nblakefriend-mailchimp-apiv3)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[pacely/mailchimp-apiv3

Simple API wrapper for Mailchimp API V3

95654.6k2](/packages/pacely-mailchimp-apiv3)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
