godisco/mailchimp-bundle

Mailchimp bundle for symfony2

Installs: 560

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 1

Type:symfony-bundle

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

This package is not auto-updated.

Last update: 2024-04-22 23:05:18 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();