Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Mailchimp Bundle Laravel Package

coderbyheart/mailchimp-bundle

View on GitHub
Deep Wiki
Context7

MailChimp Bundle

Thin abstraction layer for the MailChimp API 2.0.

All API endpoints are implemented … by not implementing them but taking advantage of the API's naming conventions.

SensioLabsInsight

Build Status Code Climate Test Coverage

Getting started

Install with composer:

php composer.phar require coderbyheart/mailchimp-bundle

Enable the Bundle:

<?php
// app/AppKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new Coderbyheart\MailChimpBundle\CoderbyheartMailChimpBundle(),
    );
}

Configure the Bundle:

// app/config/config.yml

coderbyheart_mail_chimp:
    api_key:     123-us1  # the api key provided by mailchimp
    return_type: object   # return response data as 'object' or 'array'

Usage

$mailchimp = $container->get('mailchimp');
$lists = $mailchimp->listsList();

Documentation

The api endpoints are reached via a method call on the MailChimp API object instance. The method name is composed by concatenating the endpoint url. Parameters are provided via a hash as the methods argument.

API endpoint Method Arguments
lists/list listsList
lists/batch-unsubscribe listsBatch_unsubscribe array('batch' => $batch)
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity