PHPackages                             cinghie/yii2-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. cinghie/yii2-mailchimp

ActiveYii2-extension[Mail &amp; Notifications](/categories/mail)

cinghie/yii2-mailchimp
======================

Yii2 Mailchimp to manage Mailchimp Email Platform in a Yii2 site.

0.2.2(7y ago)94.4k5BSD-3-ClausePHP

Since Feb 6Pushed 3y ago3 watchersCompare

[ Source](https://github.com/cinghie/yii2-mailchimp)[ Packagist](https://packagist.org/packages/cinghie/yii2-mailchimp)[ Docs](https://github.com/cinghie/yii2-mailchimp)[ RSS](/packages/cinghie-yii2-mailchimp/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

Yii2 Mailchimp
==============

[](#yii2-mailchimp)

[![License](https://camo.githubusercontent.com/a13006b886301af2bc269a147ca2173a4a87028880af06271894d768ecfe04fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63696e676869652f796969322d6d61696c6368696d702e737667)](https://camo.githubusercontent.com/a13006b886301af2bc269a147ca2173a4a87028880af06271894d768ecfe04fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63696e676869652f796969322d6d61696c6368696d702e737667)[![Latest Stable Version](https://camo.githubusercontent.com/3426518ed80e6a2b6c41ac14b2a6d83ffca0f1fbc9d06ec3378e7a7a42aa672c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63696e676869652f796969322d6d61696c6368696d702e737667)](https://camo.githubusercontent.com/3426518ed80e6a2b6c41ac14b2a6d83ffca0f1fbc9d06ec3378e7a7a42aa672c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f63696e676869652f796969322d6d61696c6368696d702e737667)[![Latest Release Date](https://camo.githubusercontent.com/c451d15776a129eaa8c0acfe9cf959b473d56121c7393d8b86c958fdfe93171a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f63696e676869652f796969322d6d61696c6368696d702e737667)](https://camo.githubusercontent.com/c451d15776a129eaa8c0acfe9cf959b473d56121c7393d8b86c958fdfe93171a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652d646174652f63696e676869652f796969322d6d61696c6368696d702e737667)[![Latest Commit](https://camo.githubusercontent.com/6a9412bbb0e39f0528bf84ea1eaa230abbc38ba805188fa8741ae1ef2f726445/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f63696e676869652f796969322d6d61696c6368696d702e737667)](https://camo.githubusercontent.com/6a9412bbb0e39f0528bf84ea1eaa230abbc38ba805188fa8741ae1ef2f726445/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f63696e676869652f796969322d6d61696c6368696d702e737667)[![Total Downloads](https://camo.githubusercontent.com/b88c8666144efc0256c4e34c1feb77c6c99695bd71d7f0d01dd547d2f088b5d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63696e676869652f796969322d6d61696c6368696d702e737667)](https://packagist.org/packages/cinghie/yii2-mailchimp)

Yii2 MailChimp extension to manage the Mailchimp Email Marketing Platform:

- Website:
- PHP API:
- Documentation:

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require cinghie/yii2-mailchimp "*"

```

or add

```
"cinghie/yii2-mailchimp": "*"

```

Configuration
-------------

[](#configuration)

Set on your configuration file

```
use cinghie\mailchimp\components\Mailchimp as MailchimpComponent;
use cinghie\mailchimp\Mailchimp;

'components' => [

	'mailchimp' => [
		'class' => MailchimpComponent::class,
		'apiKey' => 'YOUR_MAILCHIMP_API_KEY'
	],

],

'modules' => [

    'mailchimp' => [
        'class' => Mailchimp::class,
        'showFirstname' => true,
        'showLastname' => true
    ]

]

```

Overrides
---------

[](#overrides)

Override controller example, on modules config

```
'modules' => [

	'mailchimp' => [
		'class' => Mailchimp::class,
		'controllerMap' => [
			'default' => 'app\controllers\DefaultController',
		]
	]

],

```

Override view example, on components config

```
'components' => [

	'view' => [
		'theme' => [
			'pathMap' => [
				'@cinghie/mailchimp/views/default' => '@app/views/mailchimp/default',
			],
		],
	],

],

```

Usage
-----

[](#usage)

```
\Yii::$app->mailchimp;
\Yii::$app->mailchimp->getClient();
\Yii::$app->mailchimp->getLists();
\Yii::$app->mailchimp->getListMembers($listID);

```

Widget Subscription Example
---------------------------

[](#widget-subscription-example)

```

```

alternative to list\_id you can set an list\_array to set a list\_id to a specific language

```

```

Actions
-------

[](#actions)

- Lists View: PathToApp/index.php?r=mailchimp/default/lists
- Lists View with Pretty Urls: PathToApp/mailchimp/default/lists
- List View: PathToApp/index.php?r=mailchimp/default/list?id=XXX&amp;name=XXX
- List View with Pretty Urls: PathToApp/mailchimp/default/list?id=XXX&amp;name=XXX

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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 ~265 days

Total

4

Last Release

2584d ago

### Community

Maintainers

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

---

Top Contributors

[![cinghie](https://avatars.githubusercontent.com/u/2445152?v=4)](https://github.com/cinghie "cinghie (52 commits)")

---

Tags

mailchimpyii2 mailchimpyii2 newsletter

### Embed Badge

![Health badge](/badges/cinghie-yii2-mailchimp/health.svg)

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

###  Alternatives

[spatie/laravel-newsletter

Manage Mailcoach and MailChimp newsletters in Laravel

1.6k6.3M26](/packages/spatie-laravel-newsletter)[thinkshout/mailchimp-api-php

PHP library for v3 of the MailChimp API

824.6M1](/packages/thinkshout-mailchimp-api-php)[zfr/zfr-mailchimp

PHP library for interacting with the v2 MailChimp REST API

44803.5k4](/packages/zfr-zfr-mailchimp)[salamwaddah/laravel-mandrill-driver

Mandrill notification channel for Laravel 5, 6, 7, 8, 9, 10, 11, 12

1174.3k](/packages/salamwaddah-laravel-mandrill-driver)[sup7even/mailchimp

Simple MailChimp integration to let users register to a specific list

1531.9k](/packages/sup7even-mailchimp)[oneup/contao-mailchimp

This extension connects a Contao installation with MailChimp.

1215.3k](/packages/oneup-contao-mailchimp)

PHPackages © 2026

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