godisco/mailchimp-bundle

Mailchimp bundle for symfony2

Installs: 412

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Type:symfony-bundle

dev-master 2013-11-20 02:34 UTC

This package is not auto-updated.

Last update: 2022-01-17 12:24:25 UTC


README

This bundle wrap the Mailchimp official PHP SDK for using inside Symfony as service.

This bundle uses V2 of Mailchimp API.

Installation:

Add this line to your composer.json "require" section:

composer.json

    "require": {
       ...
       "godisco/mailchimp-bundle": "dev-master"

Add this to your AppKernel.php (in the registerBundles() section):

app/AppKernel.php

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        // ...
        new GoDisco\MailchimpBundle\MailchimpBundle()
    }

Usage:

Just request for the mailchimp service.

$mailchimp = $container->get("mailchimp");

You can get your default list id by:

$mailchimp->getDefualtList();