PHP library to take a downloaded MailChimp Campaign CSV export and parse it in a easy-to-use array. Includes industry rates to compare statistics with.
PHP CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets/build
lib v1.1.0 release Nov 19, 2014
.gitignore
LICENSE
README.md
demo.php

README.md

MailChimp Campaign CSV Parser

Introduction

The MailChimp Campaign CSV Parser is a PHP library to take a downloaded MailChimp Campaign CSV export and parse it in a easy-to-use array. Includes industry rates to compare statistics with.

Usage

It's pretty straightforward to start using the library. All you need to get started is the a MailChimp Campaign report that can be downloaded in your MailChimp account under 'Campaigns'.

/**
 * Include the MailChimp Report Generator class.
 */
require_once( 'lib/MailChimp_Campaign_CSV_Parser.class.php' );

// Initialize the MailChimp Report Generator class.
$MC = new MailChimp_Campaign_CSV_Parser;

// Set the name of the CSV file to use.
$MC->config['mailchimp_campaign_export_file'] = 'downloaded-csv-file.csv';

// Select the company size that relates to the email campaigns
$MC->config['company_size'] = '50+';

// Select the industry that relates to the email campaigns.
$MC->config['industry'] = 'Media and Publishing';

// Get and parse the first 500 campaigns.
$MC->parse_campaign_export( 500 );
$data = $MC->array;

Change Log

Version 1.1.0

  • Added company size statistics
  • Updated code formatting
  • Enhanced demo with more stats & options