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

ActiveYii2-extension

dlds/yii2-mailchimp
===================

MailChimp integration for YeahCoach project

0.1.3(7y ago)01.4kBSD-3-ClausePHP

Since May 25Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (7)Versions (5)Used By (0)

Yii2 MailChimp extension for YeahCoach project
==============================================

[](#yii2-mailchimp-extension-for-yeahcoach-project)

MailChimp API (v3) integration developed for YeahCoach project.

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

[](#installation)

### Extension installaton

[](#extension-installaton)

Use `composer` to install the extension to your Yii2 installation.

### Component Setup

[](#component-setup)

The extension works as a standard Yii2 component.

To use it, just add and configure it inside the `main.php` configuration array (or wherever suitable for your setup), e.g.

```
    'components' => [

        // ...

        'mailChimp' => [
            'class' => 'dlds\mailchimp\YcMailChimp',
            'apiKey' => 'a576b8adf6d34916d2f7eedf0eb4dd2f-us17',
            'listId' => '123abc4560',
            'categoryId' => 'def890abcd'
        ]
    ]
```

Required initial values are only `class` and `apiKey`, but it's recommended to specify all properties as shown to avoid the need to pass them later (you can always override the default values and pass them as method parameters).

Usage example
-------------

[](#usage-example)

Example usage:

```
// load the component
$chimp = Yii::$app->mailChimp;

// get unsubscribed users on your MailChimp list
$resultObject = $chimp->getUnsubscribedContacts();

// print returned array of MailChimpBasicUser objects
print_r($resultObject->getData());
```

Testing
-------

[](#testing)

Codeception unit tests are included. From the root directory:

```
php ./vendor/bin/codecept run unit
```

Built with
----------

[](#built-with)

- [MailChimp API](https://github.com/drewm/mailchimp-api) - simple MailChimp API wrapper (uses cURL for API calls)

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

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

Total

4

Last Release

2909d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23f0d05bb48111bd348c97af007c453b374ba03c36ec4fd114dfd73896bf5958?d=identicon)[dlds](/maintainers/dlds)

---

Top Contributors

[![jirisvoboda](https://avatars.githubusercontent.com/u/10264326?v=4)](https://github.com/jirisvoboda "jirisvoboda (1 commits)")

###  Code Quality

TestsCodeception

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[statamic-rad-pack/mailchimp

Subscribe registrations or contact forms to Mailchimp

1818.5k](/packages/statamic-rad-pack-mailchimp)

PHPackages © 2026

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