Skip to content

johndoesenior/MailchimpBundle

 
 

Repository files navigation

Mailchimp Bundle

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();

About

Mailchimp bundle for symfony2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published