wunderdata/mailchimp-bundle

Symfony2 Bundle for Mailchimp v2.0 API and Export v1.0 API

Installs: 1 375

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 1

Open Issues: 0

Type:symfony-bundle

1.0.1 2013-09-05 13:50 UTC

This package is not auto-updated.

Last update: 2024-04-22 12:51:40 UTC


README

Symfony2 Bundle for Mailchimp 2.0 API and Export 1.0 API

Build Status

Installation

The bundle can be installed via Composer. You can find it on Packagist.

Configuration

Just add the following lines to your app/config/config.yml

wunderdata_mailchimp:
    apikey: verysecretkey-us1
    opts:
        debug: false
        timeout: 600

Usage

The bundle uses the official PHP implementation of the Mailchimp 2.0 API. There is no wrapper class or anything around it. They have an example project to get you started.

You can get a ready-to-use instance of the Mailchimp client from the container:

// example action in a controller

public function exampleAction()
{
    $client = $this->get('wunderdata_mailchimp.client');
}

Unfortunately there is no official PHP implementation of the Export 1.0 API. Its implementation can be found in the class \Wunderdata\MailchimpBundle\Client\ExportClient. It is using Buzz internally to perform the needed HTTP requests.

You can get a ready-to-use instance of the export client from the container:

// example action in a controller

public function exampleAction()
{
    $client = $this->get('wunderdata_mailchimp.export_client');
}