2017 © Pedro Peláez
 

library easychimp

image

bkuhl/easychimp

  • Friday, October 13, 2017
  • by bkuhl
  • Repository
  • 2 Watchers
  • 16 Stars
  • 1,965 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

Easychimp

Latest Stable Version Total Downloads Build Status Scrutinizer Code Quality, (*1)

This project has been deprecated in favor of using Mailchimp's PHP SDK directly., (*2)

Easychimp makes integrating a PHP/Laravel app with Mailchimp's API (version 3) dead simple. Functionality is currently limited to managing subscriptions on a list because that's what I needed for a project. I'd welcome pull requests that add additional functionality., (*3)

Usage

$easychimp = new Easychimp\Easychimp($apiKey);
$easychimp->validateKey(); // throws InvalidApiKey
$list = $easychimp->mailingList($listId);

$list->exists(); // boolean
$list->isOnList($email); // boolean
$list->subscribe($email, $firstName = null, $lastName = null, ...); // boolean
$list->unsubscribe($email); // boolean
$list->subscriberInfo($email); // []
$list->updateSubscriber($email, $firstName = null, $lastName = null, ...); // boolean

// Interests are labeled as "Groups" in the Mailchimp UI
$list->interestCategories(); // []
$list->interests($interestCategoryId); // []

Installation

composer require bkuhl/easychimp:~1.0

To use the facade, add the following to config/app.php:, (*4)

'aliases' => [
    ...
    'Easychimp' => Easychimp\MailchimpFacade::class,
]

Environment Variables

Define the MAILCHIMP_API_KEY environmental variable. Get your API key here., (*5)

The Versions

13/10 2017

dev-master

9999999-dev

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Kuhl

23/09 2017

V1.0.1

1.0.1.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Kuhl

03/11 2016

v1.0

1.0.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Kuhl

29/02 2016

v0.3

0.3.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Kuhl

25/11 2015

v0.2

0.2.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Kuhl

21/11 2015

v0.1

0.1.0.0

  Sources   Download

MIT

The Requires

 

The Development Requires

by Ben Kuhl