PHPackages                             lorddashme/php-mailchimp - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. lorddashme/php-mailchimp

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

lorddashme/php-mailchimp
========================

A PHP package wrapper for MailChimp API.

3.1.0(7y ago)2462MITPHPPHP &gt;=5.6 || &gt;=7.0 || &gt;=7.1 || &gt;=7.2

Since Feb 13Pushed 3y ago2 watchersCompare

[ Source](https://github.com/LordDashMe/php-mailchimp)[ Packagist](https://packagist.org/packages/lorddashme/php-mailchimp)[ Docs](https://github.com/lorddashme/php-mailchimp)[ RSS](/packages/lorddashme-php-mailchimp/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (7)Dependencies (3)Versions (7)Used By (0)

PHP MailChimp
=============

[](#php-mailchimp)

A PHP package wrapper for MailChimp API.

This package support only the version 3 of Mailchimp API.

[![Latest Stable Version](https://camo.githubusercontent.com/c66361866f5c433bba0dc776e4fd33654bd98bca4d3fbc1398e6cb1b03a0feb8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c6f7264446173684d652f7068702d6d61696c6368696d702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/LordDashMe/php-mailchimp) [![Minimum PHP Version](https://camo.githubusercontent.com/86e7d829a466cacd5658a22073e27d49d39dac72cc18216ac4963ed5463c5bbc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e362d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/) [![Coverage Status](https://camo.githubusercontent.com/deb1b20e7d210c745ae3bdd9509a51ff4844c1e48a1db90b9ea4ac97ebccdecb/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f4c6f7264446173684d652f7068702d6d61696c6368696d702f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://coveralls.io/github/LordDashMe/php-mailchimp?branch=master)

Requirement(s)
--------------

[](#requirements)

- PHP version from 5.6.\* up to latest.

Install
-------

[](#install)

- It is advice to install the package via Composer. Use the command below to install the package:

```
composer require lorddashme/php-mailchimp
```

Usage
-----

[](#usage)

- Below are the available functions:

FunctionDescription![]()![]()`post('route', closure/array);`To request in the MailChimp API service using POST method. The body parameter accepts Cloure or Array type.`get('route');`To request in the MailChimp API service using GET method.`patch('route', closure/array);`To request in the MailChimp API service using PATCH method. The body parameter accepts Cloure or Array type.`delete('route');`To request in the MailChimp API service using DELETE method.`action('route');`To request in the MailChimp API service using the custom ACTION.`getRequest();`To check the current request details. Can be use for debugging purposes.`getRespose();`To get the current response from the MailChimp API service.
 Response Format:
 `{"response_body": {...}", "header": {"response_http_code": ...}}`- Basic usage:

```
