Skip to content

mikenk2010/codeigniter-mailchimp-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Mailchimp library to CodeIgniter

This library use the Mailchimp API 2.0, and have compatibility with CodeIgniter 2.x and 3.x.

Inspired on jlamim repo

Original jlamim Github

Installing

Copy the files to their respective directories, as listed below:

config/mailchimp.php

libraries/Mailchimp.php

libraries/Mailchimp (copy the directory)

After copy files config/mailchimp.php, get the API KEY in your Mailchimp Panel, and paste in mailchimp config file, set also if debug option is true or false.

$config['mc_apikey'] = "xxxxxxxxxxx";

Load Mailchimp automatically

To load Mailchimp library automatically, add the library name in config/autoload file:

$autoload['libraries'] = array("Mailchimp");

Set also the autoload to the mailchimp config file:

$autoload['config'] = array('mailchimp');

Load Mailchimp manually from specific controller

$this->load->config('mailchimp');
$this->load->library('mailchimp');

Usage

$list = $this->mailchimp->lists->getList();

Examples

Screenshot from Xdebug Image

About

codeigniter mailchimp library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages