PHPackages                             breadhead/yii2-mailchimp-ecommerce-event-pusher - 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. breadhead/yii2-mailchimp-ecommerce-event-pusher

ActiveLibrary[API Development](/categories/api)

breadhead/yii2-mailchimp-ecommerce-event-pusher
===============================================

MailChimp Ecommerce Event Pusher for Yii2

0.2(8y ago)0641proprietaryPHPPHP &gt;=5.3.19

Since Mar 2Pushed 6y ago3 watchersCompare

[ Source](https://github.com/surzm/bh-yii2-mailchimp-ecommerce-event-pusher)[ Packagist](https://packagist.org/packages/breadhead/yii2-mailchimp-ecommerce-event-pusher)[ Docs](https://github.com/surzm/bh-yii2-mailchimp-ecommerce-event-pusher.git)[ RSS](/packages/breadhead-yii2-mailchimp-ecommerce-event-pusher/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

mailchimp-event-pusher
======================

[](#mailchimp-event-pusher)

Send events to mailchimp ecommerce

do migrations:

php yii migrate --migrationPath=@vendor/breadhead/yii2-mailchimp-ecommerce-event-pusher/src/migrations/

Implement your model class from MailchimpEventInterface. This ecommerce module for tracking:

-Cart

-Order

-Customer

-Product

Example of realization:

```
    public function saveMailchimpEvent(string $event_type): MailchimpEvent
        {
            $event = (new MailchimpEvent())->setEntityId($this->id)->setEntityType(MailchimpEvent::CUSTOMER)->setEventType($event_type)->setData($this->getMailchimpData())->save();

            return $event;
        }

        public function getMailchimpData()
        {
            return [
                'id' => (string)$this->id,
                "email_address" =>(string)$this->email,
                'opt_in_status' => (bool)$this->subscribe,
                'first_name' => (string)$this->name,
                'last_name' => (string)$this->last_name,
                'orders_count' => count($this->orders),
                'total_spent' => (float)OrderModel::find()->where(['status' => OrderModel::PAYED, 'customer_id' => $this->id])->sum('total')
            ];
        }

```

config:

```
'components' => [
    'mailchimpEventPusher' => function () {
        $store_id = ;
        return new \breadhead\mailchimp\MailchimpEventPusher($store_id);
    }
]

```

For sending events:

```
\Yii::$app->mailchimpEventPusher->getManager()->sendEvent($event)

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

2

Last Release

2993d ago

### Community

Maintainers

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

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

---

Tags

phpapiyii2mailchimp

### Embed Badge

![Health badge](/badges/breadhead-yii2-mailchimp-ecommerce-event-pusher/health.svg)

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

###  Alternatives

[pacely/mailchimp-apiv3

Simple API wrapper for Mailchimp API V3

95654.6k2](/packages/pacely-mailchimp-apiv3)[vatps/mailchimp-rest-api

Very Easy to use MailChimp REST Enabled API 3.0 Wrapper Class.

2877.3k](/packages/vatps-mailchimp-rest-api)[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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