gufy/mailchimp

Mailchimp API 3.0 for PHP

v1.1.0 2016-11-20 00:35 UTC

This package is auto-updated.

Last update: 2024-12-13 18:39:01 UTC


README

Installation

Just run this command on terminal under your active directory

  composer require gufy/mailchimp:~1

Or update your composer.json by adding this line on your require key

{
  "require":{
    "gufy/mailchimp":"~1"
  }
}

Then run composer update on your terminal

Usage

<?php
use Gufy\Mailchimp\Mailchimp;
$mailchimp =  new Mailchimp($username, $api_key); // change $username and $api_key with your credential

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

$create_list = $mailchimp->post('lists', $parameters);

Next Thing

I'm about to write the package easier to use. Such as Creating List with simple script. If you have any ideas, or improvement in this package, just create an issue or pull a request. I love to discuss something awesome. 👍